From c5dbee33b0a9da4b359357d72d462399eb9e4986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 29 Jun 2015 13:06:59 +0200 Subject: [PATCH] audioresample: Also copy metas if their API has no tags attached to it This is the default basetransform behaviour, being more strict than that is not really useful. --- gst/audioresample/gstaudioresample.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 8e1f197fb7..30825a6aa9 100644 --- a/gst/audioresample/gstaudioresample.c +++ b/gst/audioresample/gstaudioresample.c @@ -1259,9 +1259,9 @@ gst_audio_resample_transform_meta (GstBaseTransform * trans, GstBuffer * outbuf, tags = gst_meta_api_type_get_tags (info->api); - if (tags && g_strv_length ((gchar **) tags) == 1 - && gst_meta_api_type_has_tag (info->api, - g_quark_from_string (GST_META_TAG_AUDIO_STR))) + if (!tags || (g_strv_length ((gchar **) tags) == 1 + && gst_meta_api_type_has_tag (info->api, + g_quark_from_string (GST_META_TAG_AUDIO_STR)))) return TRUE; return FALSE;