GNOME Bugzilla – Bug 565441
Smoke encoder doesn't set caps correctly
Last modified: 2009-01-23 08:36:16 UTC
Linking the encoder to the gdppay element produces the following error: ERROR: from element /GstPipeline:pipeline0/GstGDPPay:gdppay0: The stream is in the wrong format. Additional debug info: gstgdppay.c(656): gst_gdp_pay_chain (): /GstPipeline:pipeline0/GstGDPPay:gdppay0: first received buffer does not have caps set And this is the used pipeline: $ gst-launch videotestsrc ! ffmpegcolorspace ! smokeenc ! gdppay ! fakesink Which works correctly with another encoder like theoraenc. I've gone through the different commits on that encoder and I think that the regression was introduced on the following commit (reverting it allows the pipeline to work): http://webcvs.freedesktop.org/gstreamer/gst-plugins-good/ext/jpeg/gstsmokeenc.c?r1=1.19&r2=1.20
* ext/jpeg/gstsmokeenc.c: (gst_smokeenc_init), (gst_smokeenc_getcaps), (gst_smokeenc_setcaps), (gst_smokeenc_chain), (gst_smokeenc_change_state): * ext/jpeg/gstsmokeenc.h: Implement getcaps function. Set caps on the pad and on all outgoing buffers. Fixes #565441.