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:
parent
aef10d46c4
commit
d2d99ac5fc
@ -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
Block a user