summaryrefslogtreecommitdiffstats
path: root/player/osd.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/osd.c')
-rw-r--r--player/osd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c
index 45db9b2c77..b88feee9f6 100644
--- a/player/osd.c
+++ b/player/osd.c
@@ -246,7 +246,8 @@ static void print_status(struct MPContext *mpctx)
talloc_free(r);
}
int64_t c = vo_get_drop_count(mpctx->video_out);
- int dropped_frames = mpctx->vo_chain->video_src->dropped_frames;
+ struct dec_video *d_video = mpctx->vo_chain->video_src;
+ int dropped_frames = d_video ? d_video->dropped_frames : 0;
if (c > 0 || dropped_frames > 0) {
saddf(&line, " Dropped: %"PRId64, c);
if (dropped_frames)