Commit f9cf10c7 authored by Benjamin Otte's avatar Benjamin Otte

gst/audioconvert/gstchannelmix.h: include missing header file

Original commit message from CVS:
* gst/audioconvert/gstchannelmix.h:
include missing header file
* gst/audioconvert/gstchannelmix.c:
(gst_audio_convert_fill_compatible):
use same sign for both channels when converting to/from compatible
channel. Previously used different signs made the signals cancel
each other out and appear like silence. (fixes #167269)
parent c89562b6
2005-02-13 Benjamin Otte <otte@gnome.org>
* gst/audioconvert/gstchannelmix.h:
include missing header file
* gst/audioconvert/gstchannelmix.c:
(gst_audio_convert_fill_compatible):
use same sign for both channels when converting to/from compatible
channel. Previously used different signs made the signals cancel
each other out and appear like silence. (fixes #167269)
2005-02-12 Tim-Philipp Müller <tim at centricular dot net>
* gst/ffmpegcolorspace/avcodec.h:
......
......@@ -140,7 +140,7 @@ gst_audio_convert_fill_compatible (GstAudioConvert * this)
}
if (pos1_0 != -1 && pos1_1 != -1 && pos2_0 != -1) {
this->matrix[pos1_0][pos2_0] = -1.0;
this->matrix[pos1_0][pos2_0] = 1.0;
this->matrix[pos1_1][pos2_0] = 1.0;
}
......@@ -161,7 +161,7 @@ gst_audio_convert_fill_compatible (GstAudioConvert * this)
}
if (pos1_0 != -1 && pos1_1 != -1 && pos2_0 != -1) {
this->matrix[pos2_0][pos1_0] = -1.0;
this->matrix[pos2_0][pos1_0] = 1.0;
this->matrix[pos2_0][pos1_1] = 1.0;
}
}
......
......@@ -23,6 +23,7 @@
#define __GST_CHANNEL_MIX_H__
#include <gst/gst.h>
#include <gst/audio/multichannel.h>
#define GST_TYPE_AUDIO_CONVERT (gst_audio_convert_get_type())
#define GST_AUDIO_CONVERT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_CONVERT,GstAudioConvert))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment