mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
examples: Run gst-indent
This commit is contained in:
parent
eb83fc6318
commit
150f64892f
6 changed files with 21 additions and 24 deletions
|
@ -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 ! 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.
|
||||
|
|
|
@ -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 ! 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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -62,8 +62,7 @@ main (int argc, char *argv[])
|
|||
"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 "
|
||||
")");
|
||||
"alawenc ! rtppcmapay name=pay1 pt=97 " ")");
|
||||
|
||||
/* attach the test factory to the /test url */
|
||||
gst_rtsp_media_mapping_add_factory (mapping, "/test", factory);
|
||||
|
|
Loading…
Reference in a new issue