mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
videoaggregator: Directly use the converters video-info instead of recalculating it
This commit is contained in:
parent
11740d78b1
commit
b301cb1fc9
1 changed files with 1 additions and 3 deletions
|
@ -176,9 +176,7 @@ gst_video_aggregator_pad_set_info (GstVideoAggregatorPad * pad,
|
||||||
GST_VIDEO_INFO_FORMAT (wanted_info));
|
GST_VIDEO_INFO_FORMAT (wanted_info));
|
||||||
pad->priv->convert =
|
pad->priv->convert =
|
||||||
gst_video_converter_new (current_info, &tmp_info, NULL);
|
gst_video_converter_new (current_info, &tmp_info, NULL);
|
||||||
pad->priv->conversion_info = vagg->info;
|
pad->priv->conversion_info = tmp_info;
|
||||||
gst_video_info_set_format (&(pad->priv->conversion_info),
|
|
||||||
GST_VIDEO_INFO_FORMAT (&vagg->info), pad->info.width, pad->info.height);
|
|
||||||
if (!pad->priv->convert) {
|
if (!pad->priv->convert) {
|
||||||
g_free (colorimetry);
|
g_free (colorimetry);
|
||||||
g_free (best_colorimetry);
|
g_free (best_colorimetry);
|
||||||
|
|
Loading…
Reference in a new issue