diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-03-07 12:16:08 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-03-09 17:49:33 +0100 |
commit | 02a3856b3d9812f87b67e7bfba439d5db0254efb (patch) | |
tree | ccec35bbab28b3dc3b930563a29b6dede4ce38df /src/totem-video-thumbnailer.c | |
parent | 307ce47e7d7eb331c1a647a743ce0744c69f42cf (diff) | |
download | totem-02a3856b3d9812f87b67e7bfba439d5db0254efb.tar.gz |
gst: Add error-reporting to screenshot helper
Make totem_gst_playbin_get_frame() report (untranslated) errors back up
to the caller.
Diffstat (limited to 'src/totem-video-thumbnailer.c')
-rw-r--r-- | src/totem-video-thumbnailer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c index 70d5a7950..de6a1ee49 100644 --- a/src/totem-video-thumbnailer.c +++ b/src/totem-video-thumbnailer.c @@ -536,7 +536,7 @@ capture_frame_at_time (ThumbApp *app, if (milliseconds != 0) thumb_app_seek (app, milliseconds); - return totem_gst_playbin_get_frame (app->play); + return totem_gst_playbin_get_frame (app->play, NULL); } static GdkPixbuf * @@ -566,7 +566,7 @@ capture_interesting_frame (ThumbApp *app) /* Pull the frame, if it's interesting we bail early */ PROGRESS_DEBUG("About to get frame for iter %d", current); - pixbuf = totem_gst_playbin_get_frame (app->play); + pixbuf = totem_gst_playbin_get_frame (app->play, NULL); if (pixbuf != NULL && is_image_interesting (pixbuf) != FALSE) { PROGRESS_DEBUG("Frame for iter %d is interesting", current); break; |