mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
glvideomixer: don't clobber unnecessary GstVideoInfo fields
otherwise we might clobber other important fields such as the frame rate.
This commit is contained in:
parent
fc1b2298d6
commit
c9d63878dd
1 changed files with 2 additions and 2 deletions
|
@ -421,8 +421,8 @@ _update_info (GstVideoAggregator * vagg, GstVideoInfo * info)
|
||||||
GST_OBJECT_UNLOCK (vagg);
|
GST_OBJECT_UNLOCK (vagg);
|
||||||
|
|
||||||
if (best_width > 0 && best_height > 0) {
|
if (best_width > 0 && best_height > 0) {
|
||||||
gst_video_info_set_format (info, GST_VIDEO_INFO_FORMAT (info),
|
info->width = best_width;
|
||||||
best_width, best_height);
|
info->height = best_height;
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue