[shotwell: 1/2] Changed stderr.printf() to warning()
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell: 1/2] Changed stderr.printf() to warning()
- Date: Mon, 13 Aug 2018 10:28:58 +0000 (UTC)
commit ba01e112b74495279861f4111fbfa201eeb427e7
Author: NarendraMA <narendra_m_a yahoo com>
Date: Tue Jul 10 18:54:53 2018 +0530
Changed stderr.printf() to warning()
thumbnailer/shotwell-video-thumbnailer.vala | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/thumbnailer/shotwell-video-thumbnailer.vala b/thumbnailer/shotwell-video-thumbnailer.vala
index 2b381a6a..ac14d7da 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]