diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-06-29 13:06:59 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-06-29 13:06:59 +0200 |
commit | c5dbee33b0a9da4b359357d72d462399eb9e4986 (patch) | |
tree | 06b47919b94fe6d355571434b1aac9304dec87d9 /gst/audioresample | |
parent | 010e35afa7ae6bab616430cd2315a0884ebc539c (diff) | |
download | gstreamer-plugins-base-c5dbee33b0a9da4b359357d72d462399eb9e4986.tar.gz |
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.
Diffstat (limited to 'gst/audioresample')
-rw-r--r-- | gst/audioresample/gstaudioresample.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 8e1f197fb..30825a6aa 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; |