summaryrefslogtreecommitdiff
path: root/src/totem-video-thumbnailer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/totem-video-thumbnailer.c')
-rw-r--r--src/totem-video-thumbnailer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index cb235dd9..09a12171 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -607,7 +607,10 @@ create_gallery (BaconVideoWidget *bvw, const char *input, const char *output)
/* Take the screenshots and composite them into a pixbuf */
current_column = current_row = x = y = 0;
for (pos = screenshot_interval; pos <= stream_length; pos += screenshot_interval) {
- screenshot = capture_frame_at_time (bvw, input, output, pos);
+ if (pos == stream_length)
+ screenshot = capture_frame_at_time (app, input, output, pos - 1);
+ else
+ screenshot = capture_frame_at_time (app, input, output, pos);
if (pixbuf == NULL) {
screenshot_width = gdk_pixbuf_get_width (screenshot);