+2007-02-21 Stefan Kost <ensonic@users.sf.net>
+
+ * gst/volume/gstvolume.c: (volume_process_int16),
+ (volume_process_int16_clamp), (volume_set_caps):
+ Unbreak volume, value remains gint.
+
2007-02-21 Stefan Kost <ensonic@users.sf.net>
* gst/volume/gstvolume.c: (volume_choose_func),
volume_process_int16 (GstVolume * this, gpointer bytes, guint n_bytes)
{
gint16 *data = (gint16 *) bytes;
- guint i, val, num_samples;
+ guint i, num_samples;
+ gint val;
num_samples = n_bytes / sizeof (gint16);
volume_process_int16_clamp (GstVolume * this, gpointer bytes, guint n_bytes)
{
gint16 *data = (gint16 *) bytes;
- guint i, val, num_samples;
+ guint i, num_samples;
+ gint val;
num_samples = n_bytes / sizeof (gint16);
/* based on mimetype, choose the correct volume_process format */
if (strcmp (mimetype, "audio/x-raw-int") == 0) {
this->format = GST_VOLUME_FORMAT_INT;
- GST_DEBUG_OBJECT (this, "use int");
+ GST_DEBUG_OBJECT (this, "use int: %u", this->width);
} else if (strcmp (mimetype, "audio/x-raw-float") == 0) {
this->format = GST_VOLUME_FORMAT_FLOAT;
- GST_DEBUG_OBJECT (this, "use float");
+ GST_DEBUG_OBJECT (this, "use float: %u", this->width);
} else {
this->process = NULL;
goto invalid_format;