View Single Post
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#154
GStreamer patch needs some updating at the moment if anyone is looking into options. Recent commit added some if statements for gstreamer 1.0 in first patched file and removed a function from the list in the second. I will push to repo at some stage once I've tested build.

Code:
Index: gecko-dev/content/media/gstreamer/GStreamerFormatHelper.cpp
===================================================================
--- gecko-dev.orig/content/media/gstreamer/GStreamerFormatHelper.cpp	2014-02-17 14:47:44.019372890 +0000
+++ gecko-dev/content/media/gstreamer/GStreamerFormatHelper.cpp	2014-02-17 18:34:57.438879473 +0000
@@ -294,26 +294,10 @@
 GList* GStreamerFormatHelper::GetFactories() {
   NS_ASSERTION(sLoadOK, "GStreamer library not linked");
 
-#if GST_VERSION_MAJOR >= 1
-  uint32_t cookie = gst_registry_get_feature_list_cookie(gst_registry_get());
-#else
-  uint32_t cookie = gst_default_registry_get_feature_list_cookie();
-#endif
-  if (cookie != mCookie) {
-    g_list_free(mFactories);
-#if GST_VERSION_MAJOR >= 1
-    mFactories =
-      gst_registry_feature_filter(gst_registry_get(),
-                                  (GstPluginFeatureFilter)FactoryFilter,
-                                  false, nullptr);
-#else
-    mFactories =
-      gst_default_registry_feature_filter((GstPluginFeatureFilter)FactoryFilter,
-                                          false, nullptr);
-#endif
-    mCookie = cookie;
-  }
-
+  g_list_free(mFactories);
+  mFactories =
+    gst_default_registry_feature_filter((GstPluginFeatureFilter)FactoryFilter,
+                                        false, nullptr);
   return mFactories;
 }
 
Index: gecko-dev/content/media/gstreamer/GStreamerFunctionList.h
===================================================================
--- gecko-dev/content/media/gstreamer/GStreamerFunctionList.h	2014-02-17 14:47:44.019372890 +0000
+++ gecko-dev/content/media/gstreamer/GStreamerFunctionList.h	2014-02-17 18:34:57.438879473 +0000
@@ -50,6 +50,7 @@
 GST_FUNC(LIBGSTREAMER, gst_init_check)
 GST_FUNC(LIBGSTREAMER, gst_iterator_next)
 GST_FUNC(LIBGSTREAMER, gst_message_parse_error)
+GST_FUNC(LIBGSTREAMER, gst_message_get_type)
 GST_FUNC(LIBGSTREAMER, gst_message_type_get_name)
 GST_FUNC(LIBGSTREAMER, gst_mini_object_ref)
 GST_FUNC(LIBGSTREAMER, gst_mini_object_unref)
@@ -63,7 +64,6 @@
 GST_FUNC(LIBGSTREAMER, gst_pipeline_get_type)
 GST_FUNC(LIBGSTREAMER, gst_plugin_feature_get_rank)
 GST_FUNC(LIBGSTREAMER, gst_registry_feature_filter)
-GST_FUNC(LIBGSTREAMER, gst_registry_get_feature_list_cookie)
 GST_FUNC(LIBGSTREAMER, gst_segment_init)
 GST_FUNC(LIBGSTREAMER, gst_segment_to_stream_time)
 GST_FUNC(LIBGSTREAMER, gst_static_caps_get)
 

The Following 2 Users Say Thank You to Android_808 For This Useful Post: