mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-25 15:28:45 -04:00
Merge pull request #3325 from cg2121/fix-seek-crash
obs-ffmpeg: Fix crash when seeking with no media
This commit is contained in:
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user