Merge pull request #3325 from cg2121/fix-seek-crash

obs-ffmpeg: Fix crash when seeking with no media
master
Jim 2020-08-24 01:04:13 -07:00 committed by GitHub
commit a4569ee2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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);
}