v4l2videodec: Add resolution change support
Subscribe v4l2 event for encoder.
https://bugzilla.gnome.org/show_bug.cgi?id=752962
UpStream Status: Pending
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c
index 51467fc..9231974 100644
--- a/sys/v4l2/v4l2_calls.c
+++ b/sys/v4l2/v4l2_calls.c
@@ -627,9 +627,7 @@
if (v4l2object->extra_controls)
gst_v4l2_set_controls (v4l2object, v4l2object->extra_controls);
- if (GST_IS_V4L2_VIDEO_DEC (v4l2object->element)) {
- gst_v4l2_subscribe_event (v4l2object);
- }
+ gst_v4l2_subscribe_event (v4l2object);
/* UVC devices are never interlaced, and doing VIDIOC_TRY_FMT on them
* causes expensive and slow USB IO, so don't probe them for interlaced