Browse Source

image-source: Add OBS_SOURCE_SRGB flag

jpark37 4 years ago
parent
commit
819e634be4
2 changed files with 4 additions and 2 deletions
  1. 2 1
      plugins/image-source/color-source.c
  2. 2 1
      plugins/image-source/image-source.c

+ 2 - 1
plugins/image-source/color-source.c

@@ -177,7 +177,8 @@ struct obs_source_info color_source_info_v3 = {
 	.id = "color_source",
 	.version = 3,
 	.type = OBS_SOURCE_TYPE_INPUT,
-	.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW,
+	.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW |
+			OBS_SOURCE_SRGB,
 	.create = color_source_create,
 	.destroy = color_source_destroy,
 	.update = color_source_update,

+ 2 - 1
plugins/image-source/image-source.c

@@ -310,7 +310,8 @@ static obs_missing_files_t *image_source_missingfiles(void *data)
 static struct obs_source_info image_source_info = {
 	.id = "image_source",
 	.type = OBS_SOURCE_TYPE_INPUT,
-	.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW,
+	.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_CUSTOM_DRAW |
+			OBS_SOURCE_SRGB,
 	.get_name = image_source_get_name,
 	.create = image_source_create,
 	.destroy = image_source_destroy,