Bug 1173463 - Log rejected gstreamer elements. r=edwin
authorRalph Giles <giles@mozilla.com>
Wed, 10 Jun 2015 11:49:00 -0700
changeset 267930 25c21f6ebb6526c392faecc06f226eb15982222a
parent 267929 67dff5bcf4fcfa9b2ee67b3f7bf060be49a5d15b
child 267931 810ffc2e869f7adab50499c4eea2a61b7e92336b
push id8157
push userjlund@mozilla.com
push dateMon, 29 Jun 2015 20:36:23 +0000
treeherdermozilla-aurora@d480e05bd276 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersedwin
bugs1173463
milestone41.0a1
Bug 1173463 - Log rejected gstreamer elements. r=edwin Makes it more obvious when we fail to play a stream because a requisite plugin is blocked for being buggy.
dom/media/gstreamer/GStreamerFormatHelper.cpp
--- a/dom/media/gstreamer/GStreamerFormatHelper.cpp
+++ b/dom/media/gstreamer/GStreamerFormatHelper.cpp
@@ -236,16 +236,17 @@ GStreamerFormatHelper::IsPluginFeatureBl
     return false;
   }
 
   const gchar *factoryName =
     gst_plugin_feature_get_name(aFeature);
 
   for (unsigned int i = 0; i < G_N_ELEMENTS(sPluginBlacklist); i++) {
     if (!strcmp(factoryName, sPluginBlacklist[i])) {
+      LOG("rejecting disabled plugin %s", factoryName);
       return true;
     }
   }
 
   return false;
 }
 
 static gboolean FactoryFilter(GstPluginFeature *aFeature, gpointer)