omx: Use has_suffix() instead of has_prefix() for the Broadcom hack

This commit is contained in:
Sebastian Dröge 2012-12-19 12:19:12 +01:00
parent 7ab0910cc3
commit b93d86abbe
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ gst_omx_core_acquire (const gchar * filename)
g_hash_table_insert (core_handles, g_strdup (filename), core); g_hash_table_insert (core_handles, g_strdup (filename), core);
/* Hack for the Broadcom OpenMAX IL implementation */ /* Hack for the Broadcom OpenMAX IL implementation */
if (g_str_has_prefix (filename, "vc/lib/libopenmaxil.so")) { if (g_str_has_suffix (filename, "vc/lib/libopenmaxil.so")) {
gchar *bcm_host_filename; gchar *bcm_host_filename;
gchar *bcm_host_path; gchar *bcm_host_path;
GModule *bcm_host_module; GModule *bcm_host_module;

View file

@ -72,7 +72,7 @@ main (gint argc, gchar ** argv)
} }
/* Hack for the Broadcom OpenMAX IL implementation */ /* Hack for the Broadcom OpenMAX IL implementation */
if (g_str_has_prefix (filename, "vc/lib/libopenmaxil.so")) { if (g_str_has_suffix (filename, "vc/lib/libopenmaxil.so")) {
gchar *bcm_host_filename; gchar *bcm_host_filename;
gchar *bcm_host_path; gchar *bcm_host_path;
GModule *bcm_host_module; GModule *bcm_host_module;