From: Nicolas Dufresne Date: Fri, 13 Nov 2015 21:32:31 +0000 (-0500) Subject: plugin: Allow device nodes as dependency X-Git-Tag: 1.10.4~607 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79b935b3043fc0696247af930a3a6631985dd769;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst/gstplugin.c b/gst/gstplugin.c index ff36680..1626f33 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -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 */