[totem] backend: Reset stream length when on _close()



commit a8b23aac41dd7c5a5656835d648c49a8b0ce5bd8
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 34aa281..c56486f 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -3603,7 +3603,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.
@@ -3943,6 +3942,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]