decoder/ffmpeg: check InputStream::KnownSize()
This commit is contained in:
parent
52edabf2cb
commit
4da3291157
|
@ -135,6 +135,9 @@ mpd_ffmpeg_stream_seek(void *opaque, int64_t pos, int whence)
|
|||
break;
|
||||
|
||||
case AVSEEK_SIZE:
|
||||
if (!stream->input.KnownSize())
|
||||
return -1;
|
||||
|
||||
return stream->input.GetSize();
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue