Rename GS_ERROR_MODULENOTFOUND

Rename GS_ERROR_MODULENOTFOUND to GS_ERROR_MODULE_NOT_FOUND
master
jp9000 2014-06-27 15:16:29 -07:00
parent 8e860576ea
commit e44addccb0
3 changed files with 5 additions and 5 deletions

View File

@ -119,7 +119,7 @@ int gs_create(graphics_t *pgraphics, const char *module,
graphics->module = os_dlopen(module); graphics->module = os_dlopen(module);
if (!graphics->module) { if (!graphics->module) {
errcode = GS_ERROR_MODULENOTFOUND; errcode = GS_ERROR_MODULE_NOT_FOUND;
goto error; goto error;
} }

View File

@ -391,9 +391,9 @@ EXPORT texture_t texrender_gettexture(texrender_t texrender);
/* ---------------- */ /* ---------------- */
/* global functions */ /* global functions */
#define GS_SUCCESS 0 #define GS_SUCCESS 0
#define GS_ERROR_MODULENOTFOUND -1 #define GS_ERROR_MODULE_NOT_FOUND -1
#define GS_ERROR_FAIL -2 #define GS_ERROR_FAIL -2
struct gs_window { struct gs_window {
#if defined(_WIN32) #if defined(_WIN32)

View File

@ -204,7 +204,7 @@ static bool obs_init_graphics(struct obs_video_info *ovi)
errorcode = gs_create(&video->graphics, ovi->graphics_module, errorcode = gs_create(&video->graphics, ovi->graphics_module,
&graphics_data); &graphics_data);
if (errorcode != GS_SUCCESS) { if (errorcode != GS_SUCCESS) {
if (errorcode == GS_ERROR_MODULENOTFOUND) if (errorcode == GS_ERROR_MODULE_NOT_FOUND)
blog(LOG_ERROR, "Could not find graphics module '%s'", blog(LOG_ERROR, "Could not find graphics module '%s'",
ovi->graphics_module); ovi->graphics_module);
return false; return false;