plugin: Allow device nodes as dependency

This is useful for feature that are produced after probing a specific
node. You want to reload this plugin if the specific node(s) have been
removed, added, or reloaded.

https://bugzilla.gnome.org/show_bug.cgi?id=758080
This commit is contained in:
Nicolas Dufresne 2015-11-13 16:32:31 -05:00
parent 446b3e6ddc
commit 79b935b304

View file

@ -1492,7 +1492,7 @@ gst_plugin_ext_dep_extract_env_vars_paths (GstPlugin * plugin,
static guint
gst_plugin_ext_dep_get_hash_from_stat_entry (GStatBuf * s)
{
if (!(s->st_mode & (S_IFDIR | S_IFREG)))
if (!(s->st_mode & (S_IFDIR | S_IFREG | S_IFBLK | S_IFCHR)))
return (guint) - 1;
/* completely random formula */