GstTagList *tags;
GstToc *toc;
gchar *stream_id;
+ gulong probe_id;
} PrivateStream;
struct _GstDiscovererPrivate
if (is_subtitle_caps (caps)) {
/* Subtitle streams are sparse and may not provide any information - don't
* wait for data to preroll */
- gst_pad_add_probe (sinkpad, GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM,
+ ps->probe_id =
+ gst_pad_add_probe (sinkpad, GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM,
(GstPadProbeCallback) got_subtitle_data, dc, NULL);
g_object_set (ps->sink, "async", FALSE, NULL);
DISCO_LOCK (dc);
return;
}
+ if (ps->probe_id)
+ gst_pad_remove_probe (pad, ps->probe_id);
+
dc->priv->streams = g_list_delete_link (dc->priv->streams, tmp);
DISCO_UNLOCK (dc);