diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-16 18:03:21 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-06-16 18:03:21 +0000 |
commit | aa6c019ffeaae2109b383f2a142bf2dab7c2f7b3 (patch) | |
tree | 21ca974b3613cb0d03c0bb42eb96dcacba8ffd59 /src/xine-engine/audio_decoder.c | |
parent | 528a7fbfe28ea118599df54bdb17b4c5f4850704 (diff) | |
download | xine-lib-aa6c019ffeaae2109b383f2a142bf2dab7c2f7b3.tar.gz xine-lib-aa6c019ffeaae2109b383f2a142bf2dab7c2f7b3.tar.bz2 |
xine engine cleanups and new callbacks for seamless branching
CVS patchset: 192
CVS date: 2001/06/16 18:03:21
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 9effea450..1dd4a021f 100644 --- a/src/xine-engine/audio_decoder.c +++ b/src/xine-engine/audio_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_decoder.c,v 1.19 2001/06/16 14:34:49 guenter Exp $ + * $Id: audio_decoder.c,v 1.20 2001/06/16 18:03:22 guenter Exp $ * * * functions that implement audio decoding @@ -81,15 +81,18 @@ void *audio_decoder_loop (void *this_gen) { } pthread_mutex_lock (&this->xine_lock); + + if (!this->audio_finished && (buf->decoder_info[0]==0)) { + this->audio_finished = 1; - this->audio_finished = 1; - - if (this->video_finished) { - pthread_mutex_unlock (&this->xine_lock); - xine_notify_stream_finished (this); + if (this->video_finished) { + pthread_mutex_unlock (&this->xine_lock); + xine_notify_stream_finished (this); + } else + pthread_mutex_unlock (&this->xine_lock); } else pthread_mutex_unlock (&this->xine_lock); - + break; case BUF_CONTROL_QUIT: |