summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2011-11-02 14:22:16 +0200
committerPetri Hintukainen <phintuka@users.sourceforge.net>2011-11-02 14:22:16 +0200
commit463a6b08b823abb04e834f9e5a6a535b868f4b97 (patch)
tree7eb2844e4b76993bab289e964a87cfcb0f026c81 /src
parent309bb8e81976996b87da0d4d04a8365cc5edcc1d (diff)
downloadxine-lib-463a6b08b823abb04e834f9e5a6a535b868f4b97.tar.gz
xine-lib-463a6b08b823abb04e834f9e5a6a535b868f4b97.tar.bz2
ff_audio_decoder: do not queue any data if opening audio output fails
Diffstat (limited to 'src')
-rw-r--r--src/combined/ffmpeg/ff_audio_decoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/combined/ffmpeg/ff_audio_decoder.c b/src/combined/ffmpeg/ff_audio_decoder.c
index 52837a54f..a078821f9 100644
--- a/src/combined/ffmpeg/ff_audio_decoder.c
+++ b/src/combined/ffmpeg/ff_audio_decoder.c
@@ -421,6 +421,7 @@ static void ff_audio_decode_data (audio_decoder_t *this_gen, buf_element_t *buf)
if (!this->output_open) {
xprintf(this->stream->xine, XINE_VERBOSITY_LOG,
"ffmpeg_audio_dec: error opening audio output\n");
+ this->size = 0;
return;
}
}