[rhythmbox] playbin2: emit playing-stream before emitting an error for that stream
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] playbin2: emit playing-stream before emitting an error for that stream
- Date: Sun, 22 Apr 2012 01:50:22 +0000 (UTC)
commit ece766fee9fa723e71a1288df9b1fe3e6929dc60
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Apr 22 11:49:22 2012 +1000
playbin2: emit playing-stream before emitting an error for that stream
This ensures that errors during stream startup (file not found, etc.)
are processed properly.
backends/gstreamer/rb-player-gst.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst.c b/backends/gstreamer/rb-player-gst.c
index d48634e..aafcd71 100644
--- a/backends/gstreamer/rb-player-gst.c
+++ b/backends/gstreamer/rb-player-gst.c
@@ -502,6 +502,9 @@ bus_cb (GstBus *bus, GstMessage *message, RBPlayerGst *mp)
}
state_change_finished (mp, sig_error);
mp->priv->emitted_error = TRUE;
+ if (mp->priv->playbin_stream_changing) {
+ emit_playing_stream_and_tags (mp, TRUE);
+ }
_rb_player_emit_error (RB_PLAYER (mp), mp->priv->stream_data, sig_error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]