diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-24 11:53:58 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-24 12:41:41 (GMT) |
commit | 5253fce55b1c09051635969661e5576f1bdb2b5b (patch) | |
tree | 1bf52abe3a66c9836e46fbb1f17f43a964076028 /src/3rdparty/phonon/ds9/volumeeffect.cpp | |
parent | 262cc0fa04b4e666551fe2051ef83a4913129d10 (diff) | |
download | Qt-5253fce55b1c09051635969661e5576f1bdb2b5b.zip Qt-5253fce55b1c09051635969661e5576f1bdb2b5b.tar.gz Qt-5253fce55b1c09051635969661e5576f1bdb2b5b.tar.bz2 |
Phonon/ds9: refactor to prepare some improvements in the usage of mutex
Diffstat (limited to 'src/3rdparty/phonon/ds9/volumeeffect.cpp')
-rw-r--r-- | src/3rdparty/phonon/ds9/volumeeffect.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/3rdparty/phonon/ds9/volumeeffect.cpp b/src/3rdparty/phonon/ds9/volumeeffect.cpp index b9a5fce..a93b074 100644 --- a/src/3rdparty/phonon/ds9/volumeeffect.cpp +++ b/src/3rdparty/phonon/ds9/volumeeffect.cpp @@ -76,7 +76,7 @@ namespace Phonon class VolumeMemInputPin : public QMemInputPin { public: - VolumeMemInputPin(QBaseFilter *parent, const QVector<AM_MEDIA_TYPE> &mt) : QMemInputPin(parent, mt, true /*transform*/) + VolumeMemInputPin(QBaseFilter *parent, const QVector<AM_MEDIA_TYPE> &mt, QPin *output) : QMemInputPin(parent, mt, true /*transform*/, output) { } @@ -139,8 +139,7 @@ namespace Phonon //then creating the input mt << audioMediaType(); - m_input = new VolumeMemInputPin(this, mt); - m_input->addOutput(m_output); //make the connection here + m_input = new VolumeMemInputPin(this, mt, m_output); } void VolumeEffectFilter::treatOneSamplePerChannel(BYTE **buffer, int sampleSize, int channelCount, int frequency) |