summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-05-08 17:50:50 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-06-07 09:55:20 +0100
commit7e0b990429730a799237a5e7b4eaeca9c2bb4562 (patch)
tree5450bf0caad765d4e00b03f74b377215d7916226
parent6fdec4768700b6d3a8ffb7e8743eaf48e9e35052 (diff)
downloadgstreamer-7e0b990429730a799237a5e7b4eaeca9c2bb4562.tar.gz
plugin: fix case where gst_plugin_load_file() didn't set the error on failure
-rw-r--r--gst/gstplugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/gstplugin.c b/gst/gstplugin.c
index d6a9b760b0..bfa145ca9b 100644
--- a/gst/gstplugin.c
+++ b/gst/gstplugin.c
@@ -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; \
}