From ff22edc1ed3cfa66c382b6c5b0a61ff0528a6d22 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 24 Aug 2007 09:07:34 +0000 Subject: fixed freezing bug in the ffmpeg plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@123 90c681e8-e032-0410-971d-27865f9a5e38 --- lib/qmmp/Input/ffmpeg/decoder_ffmpeg.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/qmmp/Input/ffmpeg/decoder_ffmpeg.cpp b/lib/qmmp/Input/ffmpeg/decoder_ffmpeg.cpp index ac674dcd0..49d3a4d66 100644 --- a/lib/qmmp/Input/ffmpeg/decoder_ffmpeg.cpp +++ b/lib/qmmp/Input/ffmpeg/decoder_ffmpeg.cpp @@ -50,10 +50,6 @@ DecoderFFmpeg::DecoderFFmpeg(QObject *parent, DecoderFactory *d, QIODevice *i, O output_size = 0; ic = 0; wma_outbuf = 0; - - - - } @@ -331,7 +327,7 @@ void DecoderFFmpeg::ffmpeg_out(int size) return; int at = 0; int to_copy = 0; - while (size > 0) + while (size > 0 && !user_stop) { to_copy = qMin(int(globalBufferSize - output_at), int(size) ); memmove ( (char *) (output_buf + output_at), wma_outbuf + at, to_copy); -- cgit v1.2.3-13-gbd6f