mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
videoaggregator: always convert when user provides converter-config
The `converter-config` property may be used to perform cropping, conversion should always be performed when the user set the property to a non-NULL value. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2748>
This commit is contained in:
parent
9d9ecfc837
commit
450116eafb
1 changed files with 4 additions and 2 deletions
|
@ -502,7 +502,8 @@ gst_video_aggregator_convert_pad_prepare_frame (GstVideoAggregatorPad * vpad,
|
|||
gst_video_converter_free (pad->priv->convert);
|
||||
pad->priv->convert = NULL;
|
||||
|
||||
if (!gst_video_info_is_equal (&vpad->info, &pad->priv->conversion_info)) {
|
||||
if (!gst_video_info_is_equal (&vpad->info, &pad->priv->conversion_info)
|
||||
|| pad->priv->converter_config) {
|
||||
pad->priv->convert =
|
||||
gst_video_converter_new_with_pool (&vpad->info,
|
||||
&pad->priv->conversion_info,
|
||||
|
@ -792,7 +793,8 @@ static void
|
|||
gst_video_converter_free (pad->priv->convert);
|
||||
pad->priv->convert = NULL;
|
||||
|
||||
if (!gst_video_info_is_equal (&vpad->info, &pad->priv->conversion_info)) {
|
||||
if (!gst_video_info_is_equal (&vpad->info, &pad->priv->conversion_info)
|
||||
|| pad->priv->converter_config) {
|
||||
GstStructure *conv_config;
|
||||
|
||||
if (pad->priv->converter_config) {
|
||||
|
|
Loading…
Reference in a new issue