splitmuxsink: add probe on the multiqueue's sink pad instead of the ghost pad
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 14 Apr 2015 16:45:44 +0000 (18:45 +0200)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 15 Apr 2015 11:30:19 +0000 (13:30 +0200)
because _release_pad tries to release it from ctx->sinkpad, which is
multiqueue's sink pad, and currently fails because the probe is not
installed there

gst/multifile/gstsplitmuxsink.c

index 111fbf7..7a92a4a 100644 (file)
@@ -1177,7 +1177,7 @@ gst_splitmux_sink_request_new_pad (GstElement * element,
 
   mq_stream_ctx_ref (ctx);
   ctx->sink_pad_block_id =
-      gst_pad_add_probe (res, GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM,
+      gst_pad_add_probe (mq_sink, GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM,
       (GstPadProbeCallback) handle_mq_input, ctx, (GDestroyNotify)
       _pad_block_destroy_sink_notify);