mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
test-mp4: Support filenames with spaces in them. Error out on too few arguments
This commit is contained in:
parent
2a41502cde
commit
22b618836e
1 changed files with 6 additions and 1 deletions
|
@ -104,6 +104,11 @@ main (int argc, char *argv[])
|
|||
g_printerr ("Error parsing options: %s\n", error->message);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (argc < 2) {
|
||||
g_print ("%s\n", g_option_context_get_help (optctx, TRUE, NULL));
|
||||
return 1;
|
||||
}
|
||||
g_option_context_free (optctx);
|
||||
|
||||
loop = g_main_loop_new (NULL, FALSE);
|
||||
|
@ -117,7 +122,7 @@ main (int argc, char *argv[])
|
|||
mounts = gst_rtsp_server_get_mount_points (server);
|
||||
|
||||
str = g_strdup_printf ("( "
|
||||
"filesrc location=%s ! qtdemux name=d "
|
||||
"filesrc location=\"%s\" ! qtdemux name=d "
|
||||
"d. ! queue ! rtph264pay pt=96 name=pay0 "
|
||||
"d. ! queue ! rtpmp4apay pt=97 name=pay1 " ")", argv[1]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue