0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

obs-ffmpeg: Fix crash when seeking with no media

This fixes a crash when seeking when there is no valid
media.
This commit is contained in:
Clayton Groeneveld 2020-08-24 02:42:57 -05:00
parent aef10d46c4
commit d2d99ac5fc

View File

@ -714,6 +714,9 @@ static void ffmpeg_source_set_time(void *data, int64_t ms)
{
struct ffmpeg_source *s = data;
if (!s->media_valid)
return;
mp_media_seek_to(&s->media, ms);
}