[totem] thumbnailer: Don't seek if we don't need to



commit 5001c263f03b9d8f2af6f1e42b65485cee7d33e5
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 20 21:31:48 2012 +0100

    thumbnailer: Don't seek if we don't need to

 src/totem-video-thumbnailer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index 66e075b..fa26eed 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -687,7 +687,8 @@ static GdkPixbuf *
 capture_frame_at_time (ThumbApp   *app,
 		       gint64 milliseconds)
 {
-	thumb_app_seek (app, milliseconds);
+	if (milliseconds != 0)
+		thumb_app_seek (app, milliseconds);
 
 	return totem_gst_playbin_get_frame (app->play);
 }



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