[rhythmbox/gstreamer-1.0: 32/39] xfade: fix probe type for blocking streams to be unlinked



commit 68fbcf056e772b1f470411cc831c11e9c0c0ca20
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Nov 9 08:54:29 2012 +1000

    xfade: fix probe type for blocking streams to be unlinked
    
    we need both BLOCK_DOWNSTREAM and IDLE here as we want to block
    streams that may not have any data flowing, but we can't allow
    any data that is currently flowing to pass.

 backends/gstreamer/rb-player-gst-xfade.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 7c9dbca..ff2ce3b 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -1378,7 +1378,7 @@ unlink_and_block_stream (RBXFadeStream *stream)
 	} else {
 		g_assert (stream->block_probe_id == 0);
 		stream->block_probe_id = gst_pad_add_probe (stream->src_pad,
-							    GST_PAD_PROBE_TYPE_IDLE,
+							    GST_PAD_PROBE_TYPE_IDLE | GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM,
 							    (GstPadProbeCallback) unlink_blocked_cb,
 							    stream,
 							    NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]