[totem/gnome-3-8] backend: Reset stream length when on _close()



commit da8234141146db8d69af641a4882902be76edf2b
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 18 10:21:31 2013 +0100

    backend: Reset stream length when on _close()
    
    Rather than on _open().

 src/backend/bacon-video-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 4976a6a..56fffa5 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -3499,7 +3499,6 @@ bacon_video_widget_open (BaconVideoWidget * bvw,
   bvw->priv->got_redirect = FALSE;
   bvw->priv->media_has_video = FALSE;
   bvw->priv->media_has_audio = FALSE;
-  bvw->priv->stream_length = 0;
 
   /* Flush the bus to make sure we don't get any messages
    * from the previous URI, see bug #607224.
@@ -3840,6 +3839,7 @@ bacon_video_widget_close (BaconVideoWidget * bvw)
   bvw->priv->current_time = 0;
   bvw->priv->seek_req_time = GST_CLOCK_TIME_NONE;
   bvw->priv->seek_time = -1;
+  bvw->priv->stream_length = 0;
 
   if (bvw->priv->eos_id != 0)
     g_source_remove (bvw->priv->eos_id);


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