summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2014-04-18 20:04:25 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-04-24 12:28:17 +0200
commitfc02ec2087d395697c06ea60944a0694cde958a9 (patch)
tree4176325c3ec1e19c1da56591957cfd9c1746bb2a /sys
parentd234bee52f2b5fb4775f22af2391907a00ac790b (diff)
downloadgstreamer-plugins-bad-fc02ec2087d395697c06ea60944a0694cde958a9.tar.gz
avfassetsrc: downgrade rank to SECONDARY in OS X
Diffstat (limited to 'sys')
-rw-r--r--sys/applemedia/plugin.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/applemedia/plugin.m b/sys/applemedia/plugin.m
index 55b3a9463..5486ae04a 100644
--- a/sys/applemedia/plugin.m
+++ b/sys/applemedia/plugin.m
@@ -32,9 +32,12 @@
#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