struct v4l2_ext_control control[] = {
{
.id = V4L2_CID_MPEG_VIDEO_H264_DECODE_MODE,
- .ptr = &self->decode_mode,
- .size = sizeof (self->decode_mode),
},
{
.id = V4L2_CID_MPEG_VIDEO_H264_START_CODE,
- .ptr = &self->start_code,
- .size = sizeof (self->start_code),
},
};
/* *INDENT-ON* */
return FALSE;
}
+ self->decode_mode = control[0].value;
+ self->start_code = control[1].value;
+
GST_INFO_OBJECT (self, "Opened H264 %s decoder %s",
is_frame_based (self) ? "frame based" : "slice based",
needs_start_codes (self) ? "using start-codes" : "withouth start-codes");