GNOME Bugzilla – Bug 614842
[jpegenc] sink pad returns ANY (not subset of its template) when connected to a filesink
Last modified: 2010-04-05 00:43:18 UTC
Triggering: GST_DEBUG=*:2 gst-launch videotestsrc num-buffers=1 ! ffmpegcolorspace ! "video/x-raw-rgb" ! ffmpegcolorspace ! jpegenc ! filesink location=/tmp/test.jpg Problem output: 0:00:01.019331021 10654 0x90418d0 ERROR GST_CAPS gstpad.c:2155:gst_pad_get_caps_unlocked:<jpegenc0:sink> pad returned caps ANY which are not a real subset of its template caps video/x-raw-yuv, format=(fourcc)I420, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ] (gst-launch-0.10:10654): GStreamer-WARNING **: pad jpegenc0:sink returned caps which are not a real subset of its template caps
Created attachment 157930 [details] [review] Proposed fix
Thanks for the fix, pushed it. Module: gst-plugins-good Branch: master Commit: 74ac172bc20e1ae657484aeb37fbaf08ad2a2b28 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=74ac172bc20e1ae657484aeb37fbaf08ad2a2b28 Author: André Dieb Martins <andre.dieb@gmail.com> Date: Sun Apr 4 20:31:38 2010 -0300 jpegenc: should not return caps ANY based on downstream When downstream has a sink pad with ANY caps, jpegenc should treat it the same as NULL and return its template caps. Fixes #614842