Merge pull request #3325 from cg2121/fix-seek-crash
obs-ffmpeg: Fix crash when seeking with no mediamaster
commit
a4569ee2a0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue