mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
videomixer: init videoinfo
... to prevent random bogus caps fields.
This commit is contained in:
parent
8c28a60eee
commit
eda9c8b3cf
1 changed files with 1 additions and 0 deletions
|
@ -228,6 +228,7 @@ gst_videomixer2_update_src_caps (GstVideoMixer2 * mix)
|
||||||
mix->nframes = 0;
|
mix->nframes = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gst_video_info_init (&info);
|
||||||
gst_video_info_set_format (&info, GST_VIDEO_INFO_FORMAT (&mix->info),
|
gst_video_info_set_format (&info, GST_VIDEO_INFO_FORMAT (&mix->info),
|
||||||
best_width, best_height);
|
best_width, best_height);
|
||||||
info.fps_n = best_fps_n;
|
info.fps_n = best_fps_n;
|
||||||
|
|
Loading…
Reference in a new issue