Skip to content

Commit

Permalink
Fix GLib critical warning about default enum value not found
Browse files Browse the repository at this point in the history
LOGSEVERITY_DEFAULT is defined as a different enum value as
LOGSEVERITY_INFO, which it corresponds to, and set as equal later on
internally. This cannot work when looking it up in the GEnumValue array.
Easiest way around it is to manually set it to INFO.
  • Loading branch information
vivia authored and Vivia Nikolaidou committed Jul 5, 2024
1 parent 187b280 commit 6f1823c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gstcefsrc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ GST_DEBUG_CATEGORY_STATIC (cef_console_debug);
#define DEFAULT_URL "https://www.google.com"
#define DEFAULT_GPU FALSE
#define DEFAULT_CHROMIUM_DEBUG_PORT -1
#define DEFAULT_LOG_SEVERITY LOGSEVERITY_DEFAULT
#define DEFAULT_LOG_SEVERITY LOGSEVERITY_INFO
#if !defined(__APPLE__) && defined(GST_CEF_USE_SANDBOX)
#define DEFAULT_SANDBOX TRUE
#else
Expand Down

0 comments on commit 6f1823c

Please sign in to comment.