[rhythmbox/gstreamer-1.0: 17/22] rb-player-gst: Use GST_MESSAGE_STREAM_START
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/gstreamer-1.0: 17/22] rb-player-gst: Use GST_MESSAGE_STREAM_START
- Date: Mon, 5 Nov 2012 23:08:21 +0000 (UTC)
commit 1798533a94d413d6c492e38828f10cead94cce20
Author: Edward Hervey <edward hervey collabora co uk>
Date: Tue Jul 10 18:18:31 2012 +0200
rb-player-gst: Use GST_MESSAGE_STREAM_START
backends/gstreamer/rb-player-gst.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst.c b/backends/gstreamer/rb-player-gst.c
index 04bbc74..16242f6 100644
--- a/backends/gstreamer/rb-player-gst.c
+++ b/backends/gstreamer/rb-player-gst.c
@@ -583,15 +583,18 @@ bus_cb (GstBus *bus, GstMessage *message, RBPlayerGst *mp)
_rb_player_emit_event (RB_PLAYER (mp), mp->priv->stream_data, gst_structure_get_name (structure), NULL);
break;
+ case GST_MESSAGE_STREAM_START:
+ if (mp->priv->playbin_stream_changing){
+ rb_debug ("got STREAM_START message");
+ mp->priv->playbin_stream_changing = FALSE;
+ emit_playing_stream_and_tags (mp, TRUE);
+ }
+ break;
+
case GST_MESSAGE_ELEMENT:
structure = gst_message_get_structure (message);
if (gst_is_missing_plugin_message (message)) {
handle_missing_plugin_message (mp, message);
- } else if (mp->priv->playbin_stream_changing &&
- gst_structure_has_name (structure, "playbin-stream-changed")) {
- rb_debug ("got playbin-stream-changed message");
- mp->priv->playbin_stream_changing = FALSE;
- emit_playing_stream_and_tags (mp, TRUE);
} else if (gst_structure_has_name (structure, "redirect")) {
const char *uri = gst_structure_get_string (structure, "new-location");
_rb_player_emit_redirect (RB_PLAYER (mp), mp->priv->stream_data, uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]