fix for probe updates
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 7 Nov 2011 16:14:17 +0000 (17:14 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 7 Nov 2011 16:14:17 +0000 (17:14 +0100)
ext/pulse/pulseaudiosink.c
gst/rtsp/gstrtspsrc.c

index 5aed976..9ae33c9 100644 (file)
@@ -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);
 
index acd7d41..0e57f91 100644 (file)
@@ -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");