mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
various: add some missing error checks
This commit is contained in:
committed by
Dudemanguy
parent
9456b2f6e9
commit
4449f38c17
@@ -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)");
|
||||
|
||||
Reference in New Issue
Block a user