From: Alban Browaeys Date: Mon, 14 May 2012 18:08:38 +0000 (+0200) Subject: playsink: missing guard around gst pad add probe X-Git-Tag: 1.19.3~511^2~6478 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e054c9af05c4a7382bd9acb28c2d068139b89e5;p=platform%2Fupstream%2Fgstreamer.git playsink: missing guard around gst pad add probe This miss prevent from switching from one track to the other. Issue encountered with rhythmbox and totem ports. --- diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index bd66def..bd60120 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -3532,7 +3532,7 @@ gst_play_sink_refresh_pad (GstPlaySink * playsink, GstPad * pad, block_id = &playsink->text_block_id; } - if (type != GST_PLAY_SINK_TYPE_FLUSHING) { + if (type != GST_PLAY_SINK_TYPE_FLUSHING && (block_id && *block_id == 0)) { GstPad *blockpad = GST_PAD_CAST (gst_proxy_pad_get_internal (GST_PROXY_PAD (pad)));