mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-03 21:25:54 +00:00
fix for probe updates
This commit is contained in:
parent
fb162c8eb4
commit
de020130e6
|
@ -581,7 +581,8 @@ gst_pulse_audio_sink_add_dbin (GstPulseAudioSink * pbin)
|
||||||
|
|
||||||
/* Trap the newsegment events that we feed the decodebin and discard them */
|
/* Trap the newsegment events that we feed the decodebin and discard them */
|
||||||
sinkpad = gst_element_get_static_pad (GST_ELEMENT (pbin->psink), "sink");
|
sinkpad = gst_element_get_static_pad (GST_ELEMENT (pbin->psink), "sink");
|
||||||
pbin->event_probe_id = gst_pad_add_probe (sinkpad, GST_PAD_PROBE_TYPE_EVENT,
|
pbin->event_probe_id =
|
||||||
|
gst_pad_add_probe (sinkpad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM,
|
||||||
(GstPadProbeCallback) dbin_event_probe, gst_object_ref (pbin), NULL);
|
(GstPadProbeCallback) dbin_event_probe, gst_object_ref (pbin), NULL);
|
||||||
gst_object_unref (sinkpad);
|
gst_object_unref (sinkpad);
|
||||||
sinkpad = NULL;
|
sinkpad = NULL;
|
||||||
|
@ -714,8 +715,9 @@ gst_pulse_audio_sink_src_event (GstPad * pad, GstEvent * event)
|
||||||
|
|
||||||
if (pbin->block_probe_id == 0)
|
if (pbin->block_probe_id == 0)
|
||||||
pbin->block_probe_id =
|
pbin->block_probe_id =
|
||||||
gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BLOCK, proxypad_blocked_cb,
|
gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM,
|
||||||
gst_object_ref (pbin), (GDestroyNotify) gst_object_unref);
|
proxypad_blocked_cb, gst_object_ref (pbin),
|
||||||
|
(GDestroyNotify) gst_object_unref);
|
||||||
GST_PULSE_AUDIO_SINK_UNLOCK (pbin);
|
GST_PULSE_AUDIO_SINK_UNLOCK (pbin);
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
@ -852,9 +854,9 @@ gst_pulse_audio_sink_set_caps (GstPulseAudioSink * pbin, GstCaps * caps)
|
||||||
|
|
||||||
if (pbin->block_probe_id == 0)
|
if (pbin->block_probe_id == 0)
|
||||||
pbin->block_probe_id =
|
pbin->block_probe_id =
|
||||||
gst_pad_add_probe (pbin->sink_proxypad, GST_PAD_PROBE_TYPE_BLOCK,
|
gst_pad_add_probe (pbin->sink_proxypad,
|
||||||
proxypad_blocked_cb, gst_object_ref (pbin),
|
GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM, proxypad_blocked_cb,
|
||||||
(GDestroyNotify) gst_object_unref);
|
gst_object_ref (pbin), (GDestroyNotify) gst_object_unref);
|
||||||
|
|
||||||
GST_PULSE_AUDIO_SINK_UNLOCK (pbin);
|
GST_PULSE_AUDIO_SINK_UNLOCK (pbin);
|
||||||
|
|
||||||
|
|
|
@ -2768,8 +2768,8 @@ gst_rtspsrc_stream_configure_udp (GstRTSPSrc * src, GstRTSPStream * stream,
|
||||||
* UDP source, we know that UDP is not blocked by a firewall and we can
|
* UDP source, we know that UDP is not blocked by a firewall and we can
|
||||||
* configure all the streams to let the application autoplug decoders. */
|
* configure all the streams to let the application autoplug decoders. */
|
||||||
stream->blockid =
|
stream->blockid =
|
||||||
gst_pad_add_probe (stream->blockedpad, GST_PAD_PROBE_TYPE_BLOCK,
|
gst_pad_add_probe (stream->blockedpad,
|
||||||
pad_blocked, src, NULL);
|
GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM, pad_blocked, src, NULL);
|
||||||
|
|
||||||
if (stream->channelpad[0]) {
|
if (stream->channelpad[0]) {
|
||||||
GST_DEBUG_OBJECT (src, "connecting UDP source 0 to manager");
|
GST_DEBUG_OBJECT (src, "connecting UDP source 0 to manager");
|
||||||
|
|
Loading…
Reference in a new issue