diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-12-20 22:19:32 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-12-20 22:19:32 -0500 |
commit | d88ec0b73784c9422c320318cb8c6314dbe3607e (patch) | |
tree | 98b36e2609a654edac1db6f625457c15783ed163 | |
parent | 04dd66f2dcbdba1c6fe3412eb63584255f733a46 (diff) | |
download | gtk+-ottie-video-args.tar.gz |
Make ottie video use the output filenameottie-video-args
It was still hardcoding foo.webm.
-rw-r--r-- | ottie/tools/ottie.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ottie/tools/ottie.c b/ottie/tools/ottie.c index 65de955f8c..dd44322e1d 100644 --- a/ottie/tools/ottie.c +++ b/ottie/tools/ottie.c @@ -248,6 +248,7 @@ do_video (int argc, GOutputStream *pipe; cairo_surface_t *surface; char *width_string, *height_string; + char *location_string; while (TRUE) { @@ -282,6 +283,7 @@ do_video (int argc, width_string = g_strdup_printf ("width=%d", width); height_string = g_strdup_printf ("height=%d", height); + location_string = g_strdup_printf ("location=%s", argv[1]); process = g_subprocess_new (G_SUBPROCESS_FLAGS_STDIN_PIPE, &error, "gst-launch-1.0", @@ -291,10 +293,11 @@ do_video (int argc, "!", "videoconvert", "!", "vp9enc", "!", "webmmux", - "!", "filesink", "location=foo.webm", + "!", "filesink", location_string, NULL); g_free (width_string); g_free (height_string); + g_free (location_string); if (process == NULL) { |