summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKrzysztof Krakowiak <krzysztof.krakowiak@gmail.com>2011-11-23 13:47:11 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-11-23 15:30:28 +0000
commit4286414e002016e6f3837696b0dec708d59787dc (patch)
treea4cce096d93d746c83898409ecbf86d969878c10 /ext
parent4bd5ef9bc5c09a363ebd7fc7e1236a77e939bc69 (diff)
downloadgstreamer-plugins-bad-4286414e002016e6f3837696b0dec708d59787dc.tar.gz
modplug: fix modules playing as mono instead of stereo
replaced broken if-return logic for fixating rate and number of channels that caused that modules were always (after successful fixation of rate) played as mono (instead of stereo) by correct one with appropiate warnings. https://bugzilla.gnome.org/show_bug.cgi?id=619035
Diffstat (limited to 'ext')
-rw-r--r--ext/modplug/gstmodplug.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/modplug/gstmodplug.cc b/ext/modplug/gstmodplug.cc
index 6faaa0c83..75988fd75 100644
--- a/ext/modplug/gstmodplug.cc
+++ b/ext/modplug/gstmodplug.cc
@@ -466,10 +466,10 @@ gst_modplug_fixate (GstPad * pad, GstCaps * caps)
GstStructure *structure;
structure = gst_caps_get_structure (caps, 0);
- if (gst_structure_fixate_field_nearest_int (structure, "rate", 44100))
- return;
- if (gst_structure_fixate_field_nearest_int (structure, "channels", 2))
- return;
+ if (!gst_structure_fixate_field_nearest_int (structure, "rate", 44100))
+ GST_WARNING_OBJECT (pad, "Failed to fixate rate to 44100");
+ if (!gst_structure_fixate_field_nearest_int (structure, "channels", 2))
+ GST_WARNING_OBJECT (pad, "Failed to fixate number of channels to stereo");
}
static gboolean