snapshot: add a newline to the usage and error output
authorStefan Kost <ensonic@users.sf.net>
Mon, 17 Jan 2011 21:13:29 +0000 (23:13 +0200)
committerStefan Kost <ensonic@users.sf.net>
Tue, 25 Jan 2011 19:55:36 +0000 (21:55 +0200)
tests/examples/snapshot/snapshot.c

index b307111..335c836 100644 (file)
@@ -41,7 +41,7 @@ main (int argc, char *argv[])
   gst_init (&argc, &argv);
 
   if (argc != 2) {
-    g_print ("usage: %s <uri>\n Writes snapshot.png in the current directory",
+    g_print ("usage: %s <uri>\n Writes snapshot.png in the current directory\n",
         argv[0]);
     exit (-1);
   }
@@ -53,7 +53,7 @@ main (int argc, char *argv[])
   pipeline = gst_parse_launch (descr, &error);
 
   if (error != NULL) {
-    g_print ("could not construct pipeline: %s", error->message);
+    g_print ("could not construct pipeline: %s\n", error->message);
     g_error_free (error);
     exit (-1);
   }