Original commit message from CVS:
* gst/law/mulaw-decode.c: (gst_mulawdec_chain):
Return GST_FLOW_NOT_NEGOTIATED when the caps are not set
yet on the srcpad. We need rate and channels before we
can do any processing. Fixes bug #519088.
+2008-02-28 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * gst/law/mulaw-decode.c: (gst_mulawdec_chain):
+ Return GST_FLOW_NOT_NEGOTIATED when the caps are not set
+ yet on the srcpad. We need rate and channels before we
+ can do any processing. Fixes bug #519088.
+
2008-02-26 Jan Schmidt <jan.schmidt@sun.com>
* configure.ac:
GstBuffer *outbuf;
GstFlowReturn ret;
- mulawdec = GST_MULAWDEC (gst_pad_get_parent (pad));
+ mulawdec = GST_MULAWDEC (GST_PAD_PARENT (pad));
+
+ if (G_UNLIKELY (mulawdec->srccaps == NULL)) {
+ gst_buffer_unref (buffer);
+ return GST_FLOW_NOT_NEGOTIATED;
+ }
mulaw_data = (guint8 *) GST_BUFFER_DATA (buffer);
mulaw_size = GST_BUFFER_SIZE (buffer);
ret = gst_pad_push (mulawdec->srcpad, outbuf);
- gst_object_unref (mulawdec);
-
return ret;
}