From de020130e6fcf0555be79aa64a57b3cbf6cda570 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 7 Nov 2011 17:14:17 +0100 Subject: [PATCH] fix for probe updates --- ext/pulse/pulseaudiosink.c | 14 ++++++++------ gst/rtsp/gstrtspsrc.c | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ext/pulse/pulseaudiosink.c b/ext/pulse/pulseaudiosink.c index 5aed9765bb..9ae33c965c 100644 --- a/ext/pulse/pulseaudiosink.c +++ b/ext/pulse/pulseaudiosink.c @@ -581,7 +581,8 @@ gst_pulse_audio_sink_add_dbin (GstPulseAudioSink * pbin) /* Trap the newsegment events that we feed the decodebin and discard them */ 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); gst_object_unref (sinkpad); sinkpad = NULL; @@ -714,8 +715,9 @@ gst_pulse_audio_sink_src_event (GstPad * pad, GstEvent * event) if (pbin->block_probe_id == 0) pbin->block_probe_id = - gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BLOCK, proxypad_blocked_cb, - gst_object_ref (pbin), (GDestroyNotify) gst_object_unref); + gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM, + proxypad_blocked_cb, gst_object_ref (pbin), + (GDestroyNotify) gst_object_unref); GST_PULSE_AUDIO_SINK_UNLOCK (pbin); ret = TRUE; @@ -852,9 +854,9 @@ gst_pulse_audio_sink_set_caps (GstPulseAudioSink * pbin, GstCaps * caps) if (pbin->block_probe_id == 0) pbin->block_probe_id = - gst_pad_add_probe (pbin->sink_proxypad, GST_PAD_PROBE_TYPE_BLOCK, - proxypad_blocked_cb, gst_object_ref (pbin), - (GDestroyNotify) gst_object_unref); + gst_pad_add_probe (pbin->sink_proxypad, + GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM, proxypad_blocked_cb, + gst_object_ref (pbin), (GDestroyNotify) gst_object_unref); GST_PULSE_AUDIO_SINK_UNLOCK (pbin); diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index acd7d416e9..0e57f910b7 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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 * configure all the streams to let the application autoplug decoders. */ stream->blockid = - gst_pad_add_probe (stream->blockedpad, GST_PAD_PROBE_TYPE_BLOCK, - pad_blocked, src, NULL); + gst_pad_add_probe (stream->blockedpad, + GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM, pad_blocked, src, NULL); if (stream->channelpad[0]) { GST_DEBUG_OBJECT (src, "connecting UDP source 0 to manager");