summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/player/audio.c b/player/audio.c
index dc1d305525..15dfc2c2d8 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -460,8 +460,7 @@ static void do_fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
mpctx->d_audio->init_retries += 1;
if (mpctx->d_audio->init_retries >= 50) {
MP_ERR(mpctx, "Error initializing audio.\n");
- struct track *track = mpctx->current_track[0][STREAM_AUDIO];
- mp_deselect_track(mpctx, track);
+ error_on_track(mpctx, mpctx->current_track[0][STREAM_AUDIO]);
return;
}
}