[MPlayer-dev-eng] [PATCH] Switch audio control in OGG demuxer
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Apr 13 22:08:37 CEST 2010
On Mon, Apr 12, 2010 at 11:45:24PM +0200, ubitux wrote:
> On Mon, Apr 12, 2010 at 07:10:18PM +0200, Reimar Döffinger wrote:
> > On Mon, Apr 12, 2010 at 06:03:27PM +0200, ubitux wrote:
> > > - The passed int arg seems to point on the audio stream id, and not the
> > > stream id. Do I have to update this argument? If I do this, the audio
> > > is disabled (some decoding errors).
> >
> > You need to update it, otherwise the whole reinitialization is not done and
> > you won't be able to switch between streams with different codecs.
> > The ogg demuxer probably does not set up all audio streams correctly, e.g.
> > fixup_vorbis_wf seems to only be called on the auto-selected one, so not
> > other vorbis streams can be played.
>
> When I update it with the final demuxer->audio->id value, the audio switch
> produce decode errors, and it switches to a mute-like stream. What am I
> missing here?
As said, I guess those are vorbis streams and fixup_vorbis_wf was never called
for the one you switch to.
> Have you a sample with audio streams using different codecs?
Maybe there's one somewhere in samples.mplayerhq.hu , but I doubt it.
More information about the MPlayer-dev-eng
mailing list