Merge pull request #3158 from exeldro/obs-ffmpeg_fix

obs-ffmpeg: Fix play pause crash
master
Jim 2020-07-12 16:02:00 -07:00 committed by GitHub
commit f094369c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)