From 8f4f38c30e043fdf5535a7308e1e1cb1040b3d81 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 31 Mar 2017 12:44:08 -0700 Subject: [PATCH] obs-ffmpeg: Fix bug on non-MSVC compilers This happens because the enum had the incorrect name, and microsoft automatically treats all enums as integers in C, regardless of whether they actually exist or not. Microsoft makes terrible compilers and whoever decided this was a good idea should be fired. --- plugins/obs-ffmpeg/obs-ffmpeg-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-source.c b/plugins/obs-ffmpeg/obs-ffmpeg-source.c index 1d376318f..8f58c1978 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg-source.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg-source.c @@ -45,7 +45,7 @@ struct ffmpeg_source { enum AVPixelFormat sws_format; uint8_t *sws_data; int sws_linesize; - enum video_range range; + enum video_range_type range; obs_source_t *source; char *input;