[MPlayer-dev-eng] Re: [PATCH] GUI: fix audio/video id in gtk/menu.c

Alban Bedel albeu at free.fr
Mon Apr 24 09:41:27 CEST 2006


On Sun, 23 Apr 2006 23:05:14 +0400
Stanislav Maslovski <stanislav.maslovski at gmail.com> wrote:

> The OGM dexumer calls new_sh_audio()/new_sh_video() on every audio/video
> stream it sees on opening the muxed stream.

This is the correct behaviour.

> Contrary, the MKV demuxer keeps audio/video track indices in a private
> structure. It calls new_sh_audio()/new_sh_video only once, only for selected
> audio/video tracks.

This is wrong, it totatly prevent getting any info about other streams.

> What do ppl here think about adding more commands to the demux_control()
> interface of OGM and MKV (and maybe other) demuxers?
> Commands like DEMUX_GET_NUM_AUDIO, DEMUX_GET_NUM_VIDEO would be quite helpful.
> I can do that myself if nobody disagress.

No need, the demuxer should just have a stream header (sh) for each available
streams.

	Albeu




More information about the MPlayer-dev-eng mailing list