plugin: Allow device nodes as dependency
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 13 Nov 2015 21:32:31 +0000 (16:32 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 25 Nov 2015 19:26:11 +0000 (14:26 -0500)
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

gst/gstplugin.c

index ff36680..1626f33 100644 (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 */