aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-11-23 11:40:54 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-11-23 11:40:54 +0000
commitb6847c88c279c51828f5b3c3e754c0d50c1e379a (patch)
tree02e01f37821616b72df1b6e9d340d1f4b797fe13 /src
parent56da1acbe630965b2eb321915955975f92e9849f (diff)
downloadqmmp-b6847c88c279c51828f5b3c3e754c0d50c1e379a.tar.gz
qmmp-b6847c88c279c51828f5b3c3e754c0d50c1e379a.tar.bz2
qmmp-b6847c88c279c51828f5b3c3e754c0d50c1e379a.zip
removed unused code
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@626 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Input/vorbis/decoder_vorbis.cpp33
1 files changed, 2 insertions, 31 deletions
diff --git a/src/plugins/Input/vorbis/decoder_vorbis.cpp b/src/plugins/Input/vorbis/decoder_vorbis.cpp
index 083ae1b30..901e10f86 100644
--- a/src/plugins/Input/vorbis/decoder_vorbis.cpp
+++ b/src/plugins/Input/vorbis/decoder_vorbis.cpp
@@ -116,16 +116,13 @@ void DecoderVorbis::flush(bool final)
{
ulong min = final ? 0 : bks;
- while ((! done && ! m_finish) && output_bytes > min)
+ while ((!done && !m_finish) && output_bytes > min)
{
output()->recycler()->mutex()->lock ();
-
while ((! done && ! m_finish) && output()->recycler()->full())
{
mutex()->unlock();
-
output()->recycler()->cond()->wait(output()->recycler()->mutex());
-
mutex()->lock ();
done = user_stop;
}
@@ -299,26 +296,14 @@ void DecoderVorbis::run()
{
mutex()->lock ();
- if (! inited)
+ if (!inited)
{
mutex()->unlock();
-
return;
}
- //stat = DecoderEvent::Decoding;
- //stat = DecoderState::Decoding;
mutex()->unlock();
- {
- //DecoderEvent e((DecoderEvent::Type) stat);
- //dispatch(e);
- //DecoderStatus st ((DecoderStatus::Type) stat);
- //dispatch(DecoderState ((DecoderState::Type) stat));
-
- //emit statusChanged(stat);
- }
-
int section = 0;
int last_section = -1;
@@ -350,7 +335,6 @@ void DecoderVorbis::run()
output_at += len;
output_bytes += len;
-
if (output())
flush();
}
@@ -386,7 +370,6 @@ void DecoderVorbis::run()
m_finish = TRUE;
}
-
mutex()->unlock();
}
@@ -394,19 +377,7 @@ void DecoderVorbis::run()
if (m_finish)
finish();
- /* stat = DecoderState::Finished;
- else if (user_stop)
- stat = DecoderState::Stopped;*/
mutex()->unlock();
-
- {
- /*DecoderEvent e((DecoderEvent::Type) stat);
- dispatch(e);*/
- //DecoderStatus st ((DecoderStatus::Type) stat);
- //emit statusChanged(st);
- //dispatch(DecoderState ((DecoderState::Type) stat));
- }
-
deinit();
}