xine-lib's automatic audio channel selection always chooses the stream
with the lowest buffer type.
VDR sends only a single video and a single audio stream to xine. When
there are multiple audio streams available for a program and the user
selects a different audio stream in VDR, then VDR rises an event that a
channel change happens and continues to send the new stream.
xine-lib now enters a further buffer type into it's ordered track map
and in the case where the new buffer type has a higher number then the
previous one, there will be silence as xine-lib stays on the track where
no more data will be received.
The attached patch adds a new control buffer type to reset the audio
decoder's track map.
I use this buffer now when VDR informs me about a track change, and as
xine-lib will afterwards add only a single track to the map, the correct
track will be selected automatically.
Dipl.-Inform. (FH) Reinhard Nissl
From: Miguel Freitas <mfreitas@gm...> - 2006-02-05 16:41:44
On 1/27/06, Reinhard Nissl <rnissl@...> wrote:
> The attached patch adds a new control buffer type to reset the audio
> decoder's track map.
> I use this buffer now when VDR informs me about a track change, and as
> xine-lib will afterwards add only a single track to the map, the correct
> track will be selected automatically.
sounds good to me. committed.