Pass dng/grw mode down to mpegize.
This commit is contained in:
@@ -687,6 +687,20 @@ static void
|
||||
spawn_movie(char *cmd)
|
||||
{
|
||||
g_autoptr(GError) error = NULL;
|
||||
char *mode;
|
||||
|
||||
switch (state_proc.mode->v4l_pixfmt) {
|
||||
case V4L2_PIX_FMT_UYVY:
|
||||
case V4L2_PIX_FMT_YUYV:
|
||||
case V4L2_PIX_FMT_YVYU:
|
||||
case V4L2_PIX_FMT_VYUY:
|
||||
mode = "grw";
|
||||
break;
|
||||
default:
|
||||
mode = "dng";
|
||||
break;
|
||||
}
|
||||
|
||||
GSubprocess *proc = g_subprocess_new(G_SUBPROCESS_FLAGS_STDOUT_PIPE,
|
||||
&error,
|
||||
movie_script,
|
||||
@@ -694,6 +708,7 @@ spawn_movie(char *cmd)
|
||||
burst_dir,
|
||||
movie_fname,
|
||||
"305",
|
||||
mode,
|
||||
NULL);
|
||||
|
||||
if (!proc) {
|
||||
|
Reference in New Issue
Block a user