summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_decoder.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-06-10 13:41:55 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-06-10 13:41:55 +0000
commit681de9b185ef4780618bb86c3a7e5ca3e167df82 (patch)
tree12f5ddcbf00f1c84988f504bc09c61c88eee3704 /src/xine-engine/audio_decoder.c
parentb1fa43121059ad7584c59f769408099f5cb79052 (diff)
downloadxine-lib-681de9b185ef4780618bb86c3a7e5ca3e167df82.tar.gz
xine-lib-681de9b185ef4780618bb86c3a7e5ca3e167df82.tar.bz2
better fix for logo race condition
CVS patchset: 2056 CVS date: 2002/06/10 13:41:55
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r--src/xine-engine/audio_decoder.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c
index e533f49f5..019b3f786 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.76 2002/06/09 10:59:33 miguelfreitas Exp $
+ * $Id: audio_decoder.c,v 1.77 2002/06/10 13:41:55 miguelfreitas Exp $
*
*
* functions that implement audio decoding
@@ -99,11 +99,16 @@ void *audio_decoder_loop (void *this_gen) {
pthread_mutex_lock (&this->finished_lock);
- if (!this->audio_finished && (buf->decoder_flags & BUF_FLAG_END_STREAM)) {
+ if (!this->audio_finished ) {
this->audio_finished = 1;
-
+
if (this->video_finished) {
- xine_notify_stream_finished (this);
+ if( this->playing_logo )
+ buf->decoder_flags = 0;
+ this->playing_logo = 0;
+
+ if( buf->decoder_flags & BUF_FLAG_END_STREAM )
+ xine_notify_stream_finished (this);
}
}