diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-05-08 17:50:50 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-06-07 09:55:20 +0100 |
commit | 7e0b990429730a799237a5e7b4eaeca9c2bb4562 (patch) | |
tree | 5450bf0caad765d4e00b03f74b377215d7916226 | |
parent | 6fdec4768700b6d3a8ffb7e8743eaf48e9e35052 (diff) | |
download | gstreamer-7e0b990429730a799237a5e7b4eaeca9c2bb4562.tar.gz |
plugin: fix case where gst_plugin_load_file() didn't set the error on failure
-rw-r--r-- | gst/gstplugin.c | 3 |
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; \ } |