summaryrefslogtreecommitdiffstats
path: root/mpvcore/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-21 18:24:56 +0200
committerwm4 <wm4@nowhere>2013-08-21 18:32:42 +0200
commitc8a7140c739038d33e030aa0b668e101e5228491 (patch)
treef052038fd92ea9d7b0af555e189aef2b383372a9 /mpvcore/mplayer.c
parent92658864ae374e6d96cd000e4b04c7c78a2e6109 (diff)
downloadmpv-c8a7140c739038d33e030aa0b668e101e5228491.tar.bz2
mpv-c8a7140c739038d33e030aa0b668e101e5228491.tar.xz
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.
Diffstat (limited to 'mpvcore/mplayer.c')
-rw-r--r--mpvcore/mplayer.c2
1 files changed, 1 insertions, 1 deletions
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)