GNOME Bugzilla – Bug 754122
h265parse/h264parse: Crashes instead of returning not-negotiated
Last modified: 2015-08-28 18:27:40 UTC
H265 parser will crash if there is no allowed caps downstream. Using this file: https://bugzilla.gnome.org/attachment.cgi?id=310033 And running this invalid pipeline (missing a converter): gst-launch-1.0 filesrc location=SLIST_D_Sony_9.bin ! h265parse ! avdec_h265 ! ximagesink
Created attachment 310036 [details] [review] h264parse/h265parse: Fix negotiation crash As it's recursive, gst_pad_get_allowed_caps() may also return empty for anything incompatible downstream. EMPTY is not valid caps value for gst_caps_fixate(). This lead to assertion and then crash. Ideally, the negotiate function should be re-factored to have a return value, and we could make the negotiation fails earlier.
Attachment 310036 [details] pushed as b392a6e - h264parse/h265parse: Fix negotiation crash