mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
gstvideoaggregator: always update converter when needed
In prepare_frame, it is not enough for the target info (conversion_info) to not have changed to decide not to update the converter, as the vpad info may have changed as well. Fixes #714
This commit is contained in:
parent
ad68f71d9a
commit
64d2e6b70d
1 changed files with 18 additions and 22 deletions
|
@ -398,9 +398,6 @@ gst_video_aggregator_convert_pad_prepare_frame (GstVideoAggregatorPad * vpad,
|
|||
return FALSE;
|
||||
pad->priv->converter_config_changed = FALSE;
|
||||
|
||||
if (!pad->priv->conversion_info.finfo
|
||||
|| !gst_video_info_is_equal (&conversion_info,
|
||||
&pad->priv->conversion_info)) {
|
||||
pad->priv->conversion_info = conversion_info;
|
||||
|
||||
if (pad->priv->convert)
|
||||
|
@ -424,7 +421,6 @@ gst_video_aggregator_convert_pad_prepare_frame (GstVideoAggregatorPad * vpad,
|
|||
GST_DEBUG_OBJECT (pad, "This pad will not need conversion");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!gst_video_frame_map (&frame, &vpad->info, buffer, GST_MAP_READ)) {
|
||||
GST_WARNING_OBJECT (vagg, "Could not map input buffer");
|
||||
|
|
Loading…
Reference in a new issue