diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-18 23:30:42 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-18 23:55:28 +0000 |
commit | 4449f38c17766a4645fda12dc0f56a79f0ae2bce (patch) | |
tree | 2362f8cfdbf5391a662734aaf9b6283dce73388d /player/loadfile.c | |
parent | 9456b2f6e96fbf950324f5d7ad458f504644bb41 (diff) | |
download | mpv-4449f38c17766a4645fda12dc0f56a79f0ae2bce.tar.bz2 mpv-4449f38c17766a4645fda12dc0f56a79f0ae2bce.tar.xz |
various: add some missing error checks
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index b7a4e31153..1d25dc340a 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -290,7 +290,7 @@ static void print_stream(struct MPContext *mpctx, struct track *t) APPEND(b, " %dHz", s->codec->samplerate); } APPEND(b, ")"); - if (s->hls_bitrate > 0) + if (s && s->hls_bitrate > 0) APPEND(b, " (%d kbps)", (s->hls_bitrate + 500) / 1000); if (t->is_external) APPEND(b, " (external)"); |