From bc4389806d17c8ea27d952b5b539ee9235fa3027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 1 Nov 2012 14:31:29 +0100 Subject: [PATCH] audioconvert: Also ignore the SIGNED flag when matching an output format --- gst/audioconvert/gstaudioconvert.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index 67ee3173eb..6ff7ff4b4f 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -460,6 +460,7 @@ gst_audio_convert_fixate_format (GstBaseTransform * base, GstStructure * ins, in_flags = GST_AUDIO_FORMAT_INFO_FLAGS (in_info); in_flags &= ~(GST_AUDIO_FORMAT_FLAG_UNPACK); + in_flags &= ~(GST_AUDIO_FORMAT_FLAG_SIGNED); if (GST_VALUE_HOLDS_LIST (format)) { gint i, len; @@ -482,6 +483,7 @@ gst_audio_convert_fixate_format (GstBaseTransform * base, GstStructure * ins, break; out_flags = GST_AUDIO_FORMAT_INFO_FLAGS (t_info); out_flags &= ~(GST_AUDIO_FORMAT_FLAG_UNPACK); + out_flags &= ~(GST_AUDIO_FORMAT_FLAG_SIGNED); /* or another format without losing precision */ if (in_flags == out_flags) { if (GST_AUDIO_FORMAT_INFO_DEPTH (t_info) ==