Commit 4233ba4c authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

videoaggregator: Directly use the converters video-info instead of recalculating it

parent 00880b58
...@@ -176,9 +176,7 @@ gst_video_aggregator_pad_set_info (GstVideoAggregatorPad * pad, ...@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment