[totem] Use direct seeking with file caches



commit ec63d879243ded32322a910d9c9244ddabb26813
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 4 19:40:58 2009 +0000

    Use direct seeking with file caches
    
    When caching the stream to disk, allow direct seeking in the UI

 src/backend/bacon-video-widget-gst-0.10.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 2455ce5..750bf2b 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -3597,6 +3597,9 @@ bacon_video_widget_can_direct_seek (BaconVideoWidget *bvw)
   if (bvw->priv->mrl == NULL)
     return FALSE;
 
+  if (bvw->priv->download_buffering != FALSE)
+    return TRUE;
+
   /* (instant seeking only make sense with video,
    * hence no cdda:// here) */
   if (g_str_has_prefix (bvw->priv->mrl, "file://") ||



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