avfassetsrc: downgrade rank to SECONDARY in OS X
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Fri, 18 Apr 2014 18:04:25 +0000 (20:04 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 24 Apr 2014 10:28:17 +0000 (12:28 +0200)
sys/applemedia/plugin.m

index 55b3a94..5486ae0 100644 (file)
 #include "avfassetsrc.h"
 #endif
 #ifndef HAVE_IOS
+#define AV_RANK GST_RANK_SECONDARY
 #include "vth264decbin.h"
 #include "vth264encbin.h"
 #include "vtdec.h"
+#else
+#define AV_RANK GST_RANK_PRIMARY
 #endif
 #include "atdec.h"
 
@@ -67,9 +70,9 @@ plugin_init (GstPlugin * plugin)
 #endif
 
 #ifdef HAVE_AVFOUNDATION
-  res &= gst_element_register (plugin, "avfvideosrc", GST_RANK_PRIMARY,
+  res &= gst_element_register (plugin, "avfvideosrc", AV_RANK,
       GST_TYPE_AVF_VIDEO_SRC);
-  res &= gst_element_register (plugin, "avfassetsrc", GST_RANK_PRIMARY,
+  res &= gst_element_register (plugin, "avfassetsrc", AV_RANK,
       GST_TYPE_AVF_ASSET_SRC);
 #endif