summaryrefslogtreecommitdiff
path: root/src/totem-video-thumbnailer.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2012-06-20 21:31:48 +0100
committerBastien Nocera <hadess@hadess.net>2012-06-22 11:31:43 +0100
commit5001c263f03b9d8f2af6f1e42b65485cee7d33e5 (patch)
treed593b3ee9d3132aa347dde5f39acf7affada6bb4 /src/totem-video-thumbnailer.c
parente470b565904ec5b54f75c2d6ff5e0437208d2c9b (diff)
downloadtotem-5001c263f03b9d8f2af6f1e42b65485cee7d33e5.tar.gz
thumbnailer: Don't seek if we don't need to
Diffstat (limited to 'src/totem-video-thumbnailer.c')
-rw-r--r--src/totem-video-thumbnailer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index 66e075b74..fa26eedff 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);
}