192008d487
24-bit LPCM support and various bug fixes. From Brad.
17 lines
714 B
Plaintext
17 lines
714 B
Plaintext
$OpenBSD: patch-src_xine-engine_audio_decoder_c,v 1.11 2011/10/09 20:45:07 sthen Exp $
|
|
|
|
Fix audio crash.
|
|
|
|
--- src/xine-engine/audio_decoder.c.orig Wed Sep 28 01:38:57 2011
|
|
+++ src/xine-engine/audio_decoder.c Wed Sep 28 01:39:29 2011
|
|
@@ -283,6 +283,9 @@ static void *audio_decoder_loop (void *stream_gen) {
|
|
}
|
|
stream->audio_track_map[i] = buf->type;
|
|
stream->audio_track_map_entries++;
|
|
+ /* implicit channel change - reopen decoder below */
|
|
+ if ((i == 0) && (audio_channel_user == -1) && (stream->audio_channel_auto < 0))
|
|
+ stream->audio_decoder_streamtype = -1;
|
|
|
|
ui_event.type = XINE_EVENT_UI_CHANNELS_CHANGED;
|
|
ui_event.data_length = 0;
|