obs-ffmpeg: Fix play pause crash

master
Exeldro 2020-07-12 20:11:47 +02:00
parent 0443a1d302
commit 663605f650
1 changed files with 6 additions and 0 deletions

View File

@ -649,6 +649,12 @@ static void ffmpeg_source_play_pause(void *data, bool pause)
{
struct ffmpeg_source *s = data;
if (!s->media_valid)
ffmpeg_source_open(s);
if (!s->media_valid)
return;
mp_media_play_pause(&s->media, pause);
if (pause)