[MPlayer-dev-eng] [PATCH] Add support for default of multiple video tracks

Ingo Brückl ib at wupperonline.de
Mon Jan 27 23:39:05 CET 2014


compn wrote Mon, 27 Jan 2014 17:27:35 -0500:

> On Mon, 27 Jan 2014 21:55:25 +0100
> Ingo Brückl <ib at wupperonline.de> wrote:

>> I wrote on Mon, 27 Jan 2014 19:20:07 +0100:
>>
>> > Index: mplayer.c
>> > ===================================================================
>> > +++ mplayer.c   (working copy)
>> > @@ -3458,6 +3458,13 @@
>> >          int tmp = ts_prog;
>> >          mp_property_do("switch_program", M_PROPERTY_SET, &tmp,
>> > mpctx); }
>> > +
>> > +    // select video stream
>> > +    if (video_id == -1) {
>> > +        int tmp = demuxer_default_video_track(mpctx->demuxer);
>> > +        mp_property_do("switch_video", M_PROPERTY_SET, &tmp,

> hmm , what does this do? i mean, you can already put vid=4 into your
> config ? maybe i am misunderstanding...

It selects the default one of multiple video tracks (as it is already doing
for audio and subtitle tracks). A vid setting in the config won't help since
you don't know how many tracks there will be and which one will be flagged as
default.

Please notice the update of that part of patch I've posted.

Ingo


More information about the MPlayer-dev-eng mailing list