[rhythmbox] playbin: we can rely on getting stream-start messages now



commit 484b786e2909f6760ca1788d80ffc0e0069c00a4
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri May 9 08:17:44 2014 +1000

    playbin: we can rely on getting stream-start messages now

 backends/gstreamer/rb-player-gst.c |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/backends/gstreamer/rb-player-gst.c b/backends/gstreamer/rb-player-gst.c
index 5b611b2..f5c00d6 100644
--- a/backends/gstreamer/rb-player-gst.c
+++ b/backends/gstreamer/rb-player-gst.c
@@ -321,22 +321,9 @@ static gboolean
 tick_timeout (RBPlayerGst *mp)
 {
        if (mp->priv->playing) {
-               gint64 position;
-
-               position = rb_player_get_time (RB_PLAYER (mp));
-
-               /* if we don't have stream-changed messages, do the track change when
-                * the playback position is less than one second into the current track,
-                * which pretty much has to be the new one.
-                */
-               if (mp->priv->playbin_stream_changing && (position < GST_SECOND)) {
-                       emit_playing_stream_and_tags (mp, TRUE);
-                       mp->priv->playbin_stream_changing = FALSE;
-               }
-
                _rb_player_emit_tick (RB_PLAYER (mp),
                                      mp->priv->stream_data,
-                                     position,
+                                     rb_player_get_time (RB_PLAYER (mp)),
                                      -1);
        }
        return TRUE;


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