diff options
author | Alessandro Decina <alessandro.d@gmail.com> | 2014-07-02 12:54:45 +0200 |
---|---|---|
committer | Alessandro Decina <alessandro.d@gmail.com> | 2014-07-02 12:56:06 +0200 |
commit | 0258ec0273a253c9fb94a16856228b9cb1f67761 (patch) | |
tree | c1c610590e03487692c7f37ef123693be33ffece /sys/applemedia/plugin.m | |
parent | 92dbcf2bf9787460d9013e8e89b4bee16388c05f (diff) |
applemedia: enable vtdec and vtenc only on >= 10.8 where VideoToolbox is public
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=723670
Diffstat (limited to 'sys/applemedia/plugin.m')
-rw-r--r-- | sys/applemedia/plugin.m | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/applemedia/plugin.m b/sys/applemedia/plugin.m index 5486ae04a..1205f9ff8 100644 --- a/sys/applemedia/plugin.m +++ b/sys/applemedia/plugin.m @@ -31,18 +31,23 @@ #include "avfvideosrc.h" #include "avfassetsrc.h" #endif +#ifdef HAVE_VIDEOTOOLBOX +#include "vtdec.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" -#ifndef HAVE_IOS +#ifdef HAVE_VIDEOTOOLBOX void gst_vtenc_register_elements (GstPlugin * plugin); +#endif + +#ifndef HAVE_IOS static void enable_mt_mode (void) @@ -84,7 +89,7 @@ plugin_init (GstPlugin * plugin) #endif res &= gst_element_register (plugin, "atdec", GST_RANK_PRIMARY, GST_TYPE_ATDEC); -#ifndef HAVE_IOS +#ifdef HAVE_VIDEOTOOLBOX res &= gst_element_register (plugin, "vtdec", GST_RANK_PRIMARY, GST_TYPE_VTDEC); gst_vtenc_register_elements (plugin); #endif |