From c8a7140c739038d33e030aa0b668e101e5228491 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 21 Aug 2013 18:24:56 +0200 Subject: mplayer: start track IDs from 1 rather than 0 Completely pointless, but makes ChrisK happy for some reason. Track ID 0 is now rejected by the option parser itself. --- mpvcore/mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpvcore/mplayer.c') diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c index fe1d18740b..001798aa9b 100644 --- a/mpvcore/mplayer.c +++ b/mpvcore/mplayer.c @@ -929,7 +929,7 @@ static bool demux_was_interrupted(struct MPContext *mpctx) static int find_new_tid(struct MPContext *mpctx, enum stream_type t) { - int new_id = -1; + int new_id = 0; for (int i = 0; i < mpctx->num_tracks; i++) { struct track *track = mpctx->tracks[i]; if (track->type == t) -- cgit v1.2.3