summaryrefslogtreecommitdiffstats
path: root/player/discnav.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/discnav.c')
-rw-r--r--player/discnav.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/player/discnav.c b/player/discnav.c
index 1511dec468..ceb38bc3f4 100644
--- a/player/discnav.c
+++ b/player/discnav.c
@@ -167,6 +167,11 @@ void mp_nav_user_input(struct MPContext *mpctx, char *command)
struct mp_nav_state *nav = mpctx->nav_state;
if (!nav)
return;
+ // In the short time while the demuxer is opened (running in a different
+ // thread) we can't access the stream directly. Once the demuxer is opened,
+ // we can access the stream via demux_stream_control() though.
+ if (!mpctx->demuxer)
+ return;
if (strcmp(command, "mouse_move") == 0) {
struct mp_image_params vid = {0};
if (mpctx->d_video)