mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
plugin: fix case where gst_plugin_load_file() didn't set the error on failure
This commit is contained in:
parent
250f89a7e9
commit
035bc8b8db
1 changed files with 3 additions and 0 deletions
|
@ -657,6 +657,9 @@ static GMutex gst_plugin_loading_mutex;
|
|||
#define CHECK_PLUGIN_DESC_FIELD(desc,field,fn) \
|
||||
if (G_UNLIKELY ((desc)->field == NULL || *(desc)->field == '\0')) { \
|
||||
g_warning ("Plugin description for '%s' has no valid %s field", fn, G_STRINGIFY (field)); \
|
||||
g_set_error (error, GST_PLUGIN_ERROR, GST_PLUGIN_ERROR_MODULE, \
|
||||
"Plugin %s has invalid plugin description field '%s'", \
|
||||
filename, G_STRINGIFY (field)); \
|
||||
goto return_error; \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue