From 05819da94d073c78ad4a9626aaea2c3039ef2831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 21 Feb 2013 10:08:07 +0100 Subject: [PATCH] Set default hacks for the RPI target and always initialize bcm_host --- omx/gstomx.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index dbc8af21f5..20cd450b7c 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -62,7 +62,11 @@ gst_omx_core_acquire (const gchar * filename) g_hash_table_insert (core_handles, g_strdup (filename), core); /* Hack for the Broadcom OpenMAX IL implementation */ +#ifdef USE_OMX_TARGET_RPI + { +#else if (g_str_has_suffix (filename, "vc/lib/libopenmaxil.so")) { +#endif gchar *bcm_host_filename; gchar *bcm_host_path; GModule *bcm_host_module; @@ -2272,10 +2276,16 @@ gst_omx_error_to_string (OMX_ERRORTYPE err) } } +#if defined(USE_OMX_TARGET_RPI) +#define DEFAULT_HACKS (GST_OMX_HACK_NO_EMPTY_EOS_BUFFER | GST_OMX_HACK_NO_COMPONENT_ROLE) +#else +#define DEFAULT_HACKS (0) +#endif + guint64 gst_omx_parse_hacks (gchar ** hacks) { - guint64 hacks_flags = 0; + guint64 hacks_flags = DEFAULT_HACKS; if (!hacks) return 0;