After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766172 - v4l2videodec: [Regressions] Should not fail if S_FMT(CAPTURE) fail after STREAMON(CAPTURE)
v4l2videodec: [Regressions] Should not fail if S_FMT(CAPTURE) fail after STRE...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal blocker
: 1.8.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-05-09 13:02 UTC by Nicolas Dufresne (ndufresne)
Modified: 2016-06-07 21:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
v4l2-util: Introduce GstV4l2Error (3.17 KB, patch)
2016-06-07 20:06 UTC, Nicolas Dufresne (ndufresne)
none Details | Review
v4l2: Add an error return to _try/_set_format (12.11 KB, patch)
2016-06-07 20:06 UTC, Nicolas Dufresne (ndufresne)
none Details | Review
v4l2-util: Introduce GstV4l2Error (3.18 KB, patch)
2016-06-07 21:02 UTC, Nicolas Dufresne (ndufresne)
none Details | Review
v4l2: Add an error return to _try/_set_format (12.11 KB, patch)
2016-06-07 21:02 UTC, Nicolas Dufresne (ndufresne)
none Details | Review
v4l2-util: Introduce GstV4l2Error (3.18 KB, patch)
2016-06-07 21:03 UTC, Nicolas Dufresne (ndufresne)
committed Details | Review
v4l2: Add an error return to _try/_set_format (12.11 KB, patch)
2016-06-07 21:03 UTC, Nicolas Dufresne (ndufresne)
committed Details | Review

Description Nicolas Dufresne (ndufresne) 2016-05-09 13:02:23 UTC
As we added output format negotiation recently, we simply used gst_v4l2_object_set_format() to try and set the negotiated format. This cause a regression if the driver does not support this because this function post an error on the bus directly. In fact, it's not mandatory, most decoder have a single output format. We still want to call S_FMT, as some driver (buggy ?) won't work if you don't expliclty call S_FMT on the CAPTURE side.

In future rework, I would rather split the element handling from the V4L2 handling completely, so we can avoid this kind of issues.
Comment 1 Nicolas Dufresne (ndufresne) 2016-06-07 20:06:35 UTC
Created attachment 329331 [details] [review]
v4l2-util: Introduce GstV4l2Error

This is to allow returning an error that can easily be sent as
message to the application if the element needs it. Using this
also allow ignoring errors.
Comment 2 Nicolas Dufresne (ndufresne) 2016-06-07 20:06:39 UTC
Created attachment 329332 [details] [review]
v4l2: Add an error return to _try/_set_format

This way one can easily ignore errors. Previously, error were always
posted ont he bus.
Comment 3 Nicolas Dufresne (ndufresne) 2016-06-07 21:02:04 UTC
Created attachment 329340 [details] [review]
v4l2-util: Introduce GstV4l2Error

This is to allow returning an error that can easily be sent as
message to the application if the element needs it. Using this
also allow ignoring errors.
Comment 4 Nicolas Dufresne (ndufresne) 2016-06-07 21:02:08 UTC
Created attachment 329341 [details] [review]
v4l2: Add an error return to _try/_set_format

This way one can easily ignore errors. Previously, error were always
posted ont he bus.
Comment 5 Nicolas Dufresne (ndufresne) 2016-06-07 21:03:16 UTC
Created attachment 329342 [details] [review]
v4l2-util: Introduce GstV4l2Error

This is to allow returning an error that can easily be sent as
message to the application if the element needs it. Using this
also allow ignoring errors.
Comment 6 Nicolas Dufresne (ndufresne) 2016-06-07 21:03:20 UTC
Created attachment 329343 [details] [review]
v4l2: Add an error return to _try/_set_format

This way one can easily ignore errors. Previously, error were always
posted ont he bus.
Comment 7 Nicolas Dufresne (ndufresne) 2016-06-07 21:04:06 UTC
Attachment 329342 [details] pushed as e228430 - v4l2-util: Introduce GstV4l2Error
Attachment 329343 [details] pushed as 3b5cac3 - v4l2: Add an error return to _try/_set_format
Comment 8 Nicolas Dufresne (ndufresne) 2016-06-07 21:21:30 UTC
Branch: 1.8
Commit: 8cc80aafee75c20e6c713180daa2acba9d702304
Commit: b2e62cfb1cc3d407cba51c1138866e29536b331d