GNOME Bugzilla – Bug 660275
jpegdec doesn't implement upstream negotiation
Last modified: 2011-10-10 21:40:00 UTC
Created attachment 197594 [details] [review] Proposed patch Example pipeline: gst-launch-0.10 v4l2src ! jpegdec ! video/x-raw-yuv,width=1280,height=720,framerate=30/1 ! xvimagesink Works fine after the attched patch, fails to negotiate before
Review of attachment 197594 [details] [review]: Looks good, please push after fixing these two comments: ::: ext/jpeg/gstjpegdec.c @@ +785,3 @@ + return gst_caps_ref (GST_PAD_CAPS (pad)); + + peer = gst_pad_get_peer (dec->srcpad); You're leaking the peer here @@ +805,3 @@ + + templ_caps = gst_pad_get_pad_template_caps (pad); + caps = gst_caps_intersect (peer_caps, templ_caps); intersect_full (peer_caps, templ_caps, GST_CAPS_INTERSECT_FIRST) makes more sense here
This problem has been fixed in the development version (with the comments in the review). The fix will be available in the next major software release. Thank you for your bug report.