[MPlayer-dev-eng] Re: [PATCH]: Make TS Demuxer add streams in the same order independent on if vid/aid was set on commandline

elupus elupus at ecce.se
Tue Jan 16 23:17:04 CET 2007


Hi,

> I don't like this patch, because ts_detect_streams() is called only during 
> the
> probing phase, thus it should never allocate sh_audio and sh_video 
> structs.
> I don't see the reason for this patch; maybe some audio or video tracks
> are not detected in some of your samples? if so upload a sample to 
> incoming, please

ts_detect_streams is called on demux_open_ts to find the streams on open. 
ts_check_file is used for probing the format, thus it shouldn't be any 
problem with having it add the streams right?

In essence this is not really a bug that affects mplayer commandline 
version. I don't think there is any problem with detecting streams with the 
current way. However any gui that uses demuxer->a_streams[] to list 
available audio streams will get them in different order depending if any 
stream was specified on commandline.

In any case, I made another patch that is abit cleaner (less code 
duplication). It will do as I proposed in the previous mail, however I 
suspect you'll not like that either :). Have a look anyway.

Cheers

/Joakim 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demux_ts.patch
Type: application/octet-stream
Size: 7449 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070116/6528c652/attachment.obj>


More information about the MPlayer-dev-eng mailing list