summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorØyvind Kolås <pippin@linux.intel.com>2011-06-06 12:08:34 +0100
committerØyvind Kolås <pippin@linux.intel.com>2011-06-06 12:08:34 +0100
commit71a1c3aded6002a20e10ed70a9697df775d4e2fa (patch)
tree256fdde3f49290ef5c93823b1f1522d056102db1 /examples
parent2c40237d84de95e0810576b732b201fd5fd6a2c9 (diff)
downloadclutter-gst-71a1c3aded6002a20e10ed70a9697df775d4e2fa.tar.gz
examples: consistently use exit codes
Diffstat (limited to 'examples')
-rw-r--r--examples/video-player.c2
-rw-r--r--examples/video-sink-navigation.c11
-rw-r--r--examples/video-sink.c11
3 files changed, 13 insertions, 11 deletions
diff --git a/examples/video-player.c b/examples/video-player.c
index cc19eb3..7ea414b 100644
--- a/examples/video-player.c
+++ b/examples/video-player.c
@@ -415,5 +415,5 @@ main (int argc, char *argv[])
clutter_main ();
- return 0;
+ return EXIT_SUCCESS;
}
diff --git a/examples/video-sink-navigation.c b/examples/video-sink-navigation.c
index f196e0d..8bf77a6 100644
--- a/examples/video-sink-navigation.c
+++ b/examples/video-sink-navigation.c
@@ -77,10 +77,11 @@ main (int argc, char *argv[])
GstElement *colorspace;
GstElement *sink;
- if (argc < 1) {
- g_error ("Usage: %s", argv[0]);
- return 1;
- }
+ if (argc < 1)
+ {
+ g_error ("Usage: %s", argv[0]);
+ return EXIT_FAILURE;
+ }
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
{
@@ -143,5 +144,5 @@ main (int argc, char *argv[])
clutter_main();
- return 0;
+ return EXIT_SUCCESS;
}
diff --git a/examples/video-sink.c b/examples/video-sink.c
index 9442f80..36b2a1b 100644
--- a/examples/video-sink.c
+++ b/examples/video-sink.c
@@ -75,10 +75,11 @@ main (int argc, char *argv[])
GstElement *colorspace;
GstElement *sink;
- if (argc < 1) {
- g_error ("Usage: %s", argv[0]);
- return 1;
- }
+ if (argc < 1)
+ {
+ g_error ("Usage: %s", argv[0]);
+ return EXIT_FAILURE;
+ }
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
{
@@ -127,5 +128,5 @@ main (int argc, char *argv[])
clutter_main();
- return 0;
+ return EXIT_SUCCESS;
}