summaryrefslogtreecommitdiffstats
path: root/mpvcore/mplayer.c
diff options
context:
space:
mode:
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)