From 150f64892fc0bbc91fee519494a6897d3323afaf Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 11 Dec 2010 10:49:30 +0100 Subject: [PATCH] examples: Run gst-indent --- examples/test-launch.c | 4 ++-- examples/test-mp4.c | 8 +++----- examples/test-ogg.c | 8 +++----- examples/test-readme.c | 4 ++-- examples/test-sdp.c | 8 +++++--- examples/test-video.c | 13 ++++++------- 6 files changed, 21 insertions(+), 24 deletions(-) diff --git a/examples/test-launch.c b/examples/test-launch.c index fb863ec..8226485 100644 --- a/examples/test-launch.c +++ b/examples/test-launch.c @@ -33,8 +33,8 @@ main (int argc, char *argv[]) if (argc < 2) { g_print ("usage: %s \n" - "example: %s \"( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )\"\n", - argv[0], argv[0]); + "example: %s \"( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )\"\n", + argv[0], argv[0]); return -1; } diff --git a/examples/test-mp4.c b/examples/test-mp4.c index a7756e2..ba31ca2 100644 --- a/examples/test-mp4.c +++ b/examples/test-mp4.c @@ -46,12 +46,10 @@ main (int argc, char *argv[]) * that be used to map uri mount points to media factories */ mapping = gst_rtsp_server_get_media_mapping (server); - str = g_strdup_printf ( - "( " + str = g_strdup_printf ("( " "filesrc location=%s ! qtdemux name=d " - "d. ! queue ! rtph264pay pt=96 name=pay0 " - "d. ! queue ! rtpmp4apay pt=97 name=pay1 " - ")", argv[1]); + "d. ! queue ! rtph264pay pt=96 name=pay0 " + "d. ! queue ! rtpmp4apay pt=97 name=pay1 " ")", argv[1]); /* make a media factory for a test stream. The default media factory can use * gst-launch syntax to create pipelines. diff --git a/examples/test-ogg.c b/examples/test-ogg.c index 403144f..555bc7f 100644 --- a/examples/test-ogg.c +++ b/examples/test-ogg.c @@ -46,12 +46,10 @@ main (int argc, char *argv[]) * that be used to map uri mount points to media factories */ mapping = gst_rtsp_server_get_media_mapping (server); - str = g_strdup_printf ( - "( " + str = g_strdup_printf ("( " "filesrc location=%s ! oggdemux name=d " - "d. ! queue ! rtptheorapay name=pay0 pt=96 " - "d. ! queue ! rtpvorbispay name=pay1 pt=97 " - ")", argv[1]); + "d. ! queue ! rtptheorapay name=pay0 pt=96 " + "d. ! queue ! rtpvorbispay name=pay1 pt=97 " ")", argv[1]); /* make a media factory for a test stream. The default media factory can use * gst-launch syntax to create pipelines. diff --git a/examples/test-readme.c b/examples/test-readme.c index 977fcb0..5464e04 100644 --- a/examples/test-readme.c +++ b/examples/test-readme.c @@ -45,8 +45,8 @@ main (int argc, char *argv[]) * any launch line works as long as it contains elements named pay%d. Each * element with pay%d names will be a stream */ factory = gst_rtsp_media_factory_new (); - gst_rtsp_media_factory_set_launch (factory, - "( videotestsrc is-live=1 ! x264enc ! rtph264pay name=pay0 pt=96 )"); + gst_rtsp_media_factory_set_launch (factory, + "( videotestsrc is-live=1 ! x264enc ! rtph264pay name=pay0 pt=96 )"); gst_rtsp_media_factory_set_shared (factory, TRUE); diff --git a/examples/test-sdp.c b/examples/test-sdp.c index 64113c5..416e9ac 100644 --- a/examples/test-sdp.c +++ b/examples/test-sdp.c @@ -23,7 +23,7 @@ static gboolean -timeout (GstRTSPServer *server, gboolean ignored) +timeout (GstRTSPServer * server, gboolean ignored) { GstRTSPSessionPool *pool; @@ -65,7 +65,9 @@ main (int argc, char *argv[]) * element with pay%d names will be a stream */ factory = gst_rtsp_media_factory_new (); - str = g_strdup_printf ( "( filesrc location=%s ! sdpdemux name=dynpay0 )", argv[1]); + str = + g_strdup_printf ("( filesrc location=%s ! sdpdemux name=dynpay0 )", + argv[1]); gst_rtsp_media_factory_set_launch (factory, str); gst_rtsp_media_factory_set_shared (factory, TRUE); g_free (str); @@ -79,7 +81,7 @@ main (int argc, char *argv[]) /* attach the server to the default maincontext */ gst_rtsp_server_attach (server, NULL); - g_timeout_add_seconds (2, (GSourceFunc) timeout, server); + g_timeout_add_seconds (2, (GSourceFunc) timeout, server); /* start serving */ g_main_loop_run (loop); diff --git a/examples/test-video.c b/examples/test-video.c index 0da6f14..c4eed53 100644 --- a/examples/test-video.c +++ b/examples/test-video.c @@ -23,7 +23,7 @@ static gboolean -timeout (GstRTSPServer *server, gboolean ignored) +timeout (GstRTSPServer * server, gboolean ignored) { GstRTSPSessionPool *pool; @@ -59,11 +59,10 @@ main (int argc, char *argv[]) * element with pay%d names will be a stream */ factory = gst_rtsp_media_factory_new (); gst_rtsp_media_factory_set_launch (factory, "( " - "videotestsrc ! video/x-raw-yuv,width=352,height=288,framerate=15/1 ! " - "x264enc ! rtph264pay name=pay0 pt=96 " - "audiotestsrc ! audio/x-raw-int,rate=8000 ! " - "alawenc ! rtppcmapay name=pay1 pt=97 " - ")"); + "videotestsrc ! video/x-raw-yuv,width=352,height=288,framerate=15/1 ! " + "x264enc ! rtph264pay name=pay0 pt=96 " + "audiotestsrc ! audio/x-raw-int,rate=8000 ! " + "alawenc ! rtppcmapay name=pay1 pt=97 " ")"); /* attach the test factory to the /test url */ gst_rtsp_media_mapping_add_factory (mapping, "/test", factory); @@ -75,7 +74,7 @@ main (int argc, char *argv[]) if (gst_rtsp_server_attach (server, NULL) == 0) goto failed; - g_timeout_add_seconds (2, (GSourceFunc) timeout, server); + g_timeout_add_seconds (2, (GSourceFunc) timeout, server); /* start serving */ g_main_loop_run (loop); -- 2.7.4