|
@@ -2203,7 +2203,6 @@ int msm_vidc_process_drain_last_flag(struct msm_vidc_inst *inst)
|
|
{
|
|
{
|
|
int rc = 0;
|
|
int rc = 0;
|
|
struct v4l2_event event = {0};
|
|
struct v4l2_event event = {0};
|
|
- struct v4l2_event_vidc_last_flag *event_data = NULL;
|
|
|
|
|
|
|
|
if (!inst || !inst->capabilities) {
|
|
if (!inst || !inst->capabilities) {
|
|
d_vpr_e("%s: invalid params\n", __func__);
|
|
d_vpr_e("%s: invalid params\n", __func__);
|
|
@@ -2220,9 +2219,7 @@ int msm_vidc_process_drain_last_flag(struct msm_vidc_inst *inst)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- event.type = V4L2_EVENT_VIDC_LAST_FLAG;
|
|
|
|
- event_data = (struct v4l2_event_vidc_last_flag *)event.u.data;
|
|
|
|
- event_data->flag_type = LAST_FLAG_DRAIN;
|
|
|
|
|
|
+ event.type = V4L2_EVENT_EOS;
|
|
v4l2_event_queue_fh(&inst->event_handler, &event);
|
|
v4l2_event_queue_fh(&inst->event_handler, &event);
|
|
|
|
|
|
return rc;
|
|
return rc;
|
|
@@ -2232,7 +2229,6 @@ int msm_vidc_process_psc_last_flag(struct msm_vidc_inst *inst)
|
|
{
|
|
{
|
|
int rc = 0;
|
|
int rc = 0;
|
|
struct v4l2_event event = {0};
|
|
struct v4l2_event event = {0};
|
|
- struct v4l2_event_vidc_last_flag *event_data = NULL;
|
|
|
|
|
|
|
|
if (!inst || !inst->capabilities) {
|
|
if (!inst || !inst->capabilities) {
|
|
d_vpr_e("%s: invalid params\n", __func__);
|
|
d_vpr_e("%s: invalid params\n", __func__);
|
|
@@ -2249,9 +2245,7 @@ int msm_vidc_process_psc_last_flag(struct msm_vidc_inst *inst)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
- event.type = V4L2_EVENT_VIDC_LAST_FLAG;
|
|
|
|
- event_data = (struct v4l2_event_vidc_last_flag *)event.u.data;
|
|
|
|
- event_data->flag_type = LAST_FLAG_DRC;
|
|
|
|
|
|
+ event.type = V4L2_EVENT_EOS;
|
|
v4l2_event_queue_fh(&inst->event_handler, &event);
|
|
v4l2_event_queue_fh(&inst->event_handler, &event);
|
|
|
|
|
|
return rc;
|
|
return rc;
|