[rhythmbox] xfade: emit playing-stream before emitting errors if necessary



commit f858ba71a70673b5c8075330f5347c3895438a3e
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Aug 8 22:21:53 2010 +1000

    xfade: emit playing-stream before emitting errors if necessary
    
    If the stream that has the error isn't already playing, the error will be
    ignored, so sometimes we need to pretend it's playing.  This mostly affects
    errors that occur during preroll.

 backends/gstreamer/rb-player-gst-xfade.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index 1f677ea..4d9f57b 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -1653,6 +1653,9 @@ rb_player_gst_xfade_bus_cb (GstBus *bus, GstMessage *message, RBPlayerGstXFade *
 							 code,
 							 error->message);
 			stream->emitted_error = TRUE;
+			if (stream->emitted_playing == FALSE) {
+				_rb_player_emit_playing_stream (RB_PLAYER (player), stream->stream_data);
+			}
 			_rb_player_emit_error (RB_PLAYER (player), stream->stream_data, sig_error);
 		}
 



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