diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-09-30 14:09:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-09-30 14:09:32 +0200 |
commit | 0537caaf4af94a9ead8b292679f6b34c90b55e06 (patch) | |
tree | 6761cfdf959926be7af3147cf770e7f253390fe8 /thumbnailer/shotwell-video-thumbnailer.vala | |
parent | eca5837e235a356c8db9416bbbc13577db3e6f76 (diff) | |
parent | 5e9f4eea451a77ba3b93db3747841ed2bd969e9f (diff) |
Update upstream source from tag 'upstream/0.30.1'
Update to upstream version '0.30.1'
with Debian dir dc242531effff8d9c6fab093414edee28b403c6a
Diffstat (limited to 'thumbnailer/shotwell-video-thumbnailer.vala')
-rw-r--r-- | thumbnailer/shotwell-video-thumbnailer.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/thumbnailer/shotwell-video-thumbnailer.vala b/thumbnailer/shotwell-video-thumbnailer.vala index 2b381a6..ac14d7d 100644 --- a/thumbnailer/shotwell-video-thumbnailer.vala +++ b/thumbnailer/shotwell-video-thumbnailer.vala @@ -54,10 +54,10 @@ class ShotwellThumbnailer { // Set to PAUSED to make the first frame arrive in the sink. ret = pipeline.set_state(Gst.State.PAUSED); if (ret == Gst.StateChangeReturn.FAILURE) { - stderr.printf("Failed to play the file: couldn't set state\n"); + warning("Failed to play the file: couldn't set state\n"); return 3; } else if (ret == Gst.StateChangeReturn.NO_PREROLL) { - stderr.printf("Live sources not supported yet.\n"); + warning("Live sources not supported yet.\n"); return 4; } @@ -66,13 +66,13 @@ class ShotwellThumbnailer { // better way is to run a mainloop and catch errors there. ret = pipeline.get_state(null, null, 5 * Gst.SECOND); if (ret == Gst.StateChangeReturn.FAILURE) { - stderr.printf("Failed to play the file: couldn't get state.\n"); + warning("Failed to play the file: couldn't get state.\n"); return 3; } /* get the duration */ if (!pipeline.query_duration (Gst.Format.TIME, out duration)) { - stderr.printf("Failed to query file for duration\n"); + warning("Failed to query file for duration\n"); return 3; } @@ -86,7 +86,7 @@ class ShotwellThumbnailer { ret = pipeline.get_state(null, null, 5 * Gst.SECOND); if (ret == Gst.StateChangeReturn.FAILURE) { - stderr.printf("Failed to play the file: couldn't get state.\n"); + warning("Failed to play the file: couldn't get state.\n"); return 3; } @@ -100,7 +100,7 @@ class ShotwellThumbnailer { pipeline.set_state(Gst.State.NULL); } catch (Error e) { - stderr.printf(e.message); + warning(e.message); return 2; } |