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

Ingo Brückl ib at wupperonline.de
Mon Jan 27 21:55:25 CET 2014


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, mpctx);
> +    }
> +
>      // select audio stream
>      select_audio(mpctx->demuxer, audio_id, audio_lang);
>

This can be done much better.

The mplayer.c part of the patch attached to this posting doesn't change
video_id which is preferable.

Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi-video.mplayer.patch
Type: text/x-diff
Size: 574 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20140127/73a8fbd6/attachment.bin>


More information about the MPlayer-dev-eng mailing list