diff options
-rw-r--r-- | player/command.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index bc9031ebb3..c8b61e5758 100644 --- a/player/command.c +++ b/player/command.c @@ -1784,7 +1784,11 @@ static int property_switch_track(struct m_property *prop, int action, void *arg, switch (action) { case M_PROPERTY_GET: - *(int *) arg = track ? track->user_tid : -2; + if (mpctx->playback_initialized) { + *(int *)arg = track ? track->user_tid : -2; + } else { + *(int *)arg = mpctx->opts->stream_id[order][type]; + } return M_PROPERTY_OK; case M_PROPERTY_PRINT: if (!track) |