GNOME Bugzilla – Bug 707039
Remove manual initialization of videoinfo in gst_v4l2_object_get_caps_info()
Last modified: 2013-08-30 10:04:57 UTC
Created attachment 253485 [details] [review] Patch In gst_v4l2_object_get_caps_info() of gstv4l2object.c, videoinfo is initialized with gst_video_info_from_caps() only for video/x-raw. This leads to have a video format set to GST_VIDEO_FORMAT_UNKNOWN whereas it should be set to GST_VIDEO_FORMAT_ENCODED for compressed videos. This also means that the condition "stride != obj->bytesperline" in gst_v4l2_buffer_pool_set_config() of gstv4l2bufferpool.c will be checked and this might failed as some drivers output something different than 0 (as explained in commit log 1ed4239ea7ce2f5eda5a8f7029a718f42f06c155). See the patch provided as a possible solution.
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of bug 703399 ***
I was looking for one reporting it but didn't find it :) Good to know it's fixed. Thx.