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-05-08 17:51:31 +0100 |
commit | 035bc8b8dbf4307b55303451691aa24336dbe6f1 (patch) | |
tree | 7792f64d1cc51aa32bd97e1dbdf42e10e9fa2e1e /gst/gstplugin.c | |
parent | 250f89a7e92635109342057a78b8de14f7601f67 (diff) |
plugin: fix case where gst_plugin_load_file() didn't set the error on failure
Diffstat (limited to 'gst/gstplugin.c')
-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 c12ce4c588..6251b147ff 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; \ } |