From fbe0d07068d018a3c10db36a7c712b702cc92d77 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 26 Mar 2019 12:26:03 +0200 Subject: gstomx: remove gst_omx_buffer_set_omx_buf/get_omx_buf They are no longer used anywhere --- omx/gstomx.c | 18 ------------------ omx/gstomx.h | 3 --- 2 files changed, 21 deletions(-) diff --git a/omx/gstomx.c b/omx/gstomx.c index 038ce32..c5814ad 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -70,8 +70,6 @@ static GHashTable *core_handles; G_LOCK_DEFINE_STATIC (buffer_flags_str); static GHashTable *buffer_flags_str; -static GQuark gst_omx_buffer_data_quark = 0; - GstOMXCore * gst_omx_core_acquire (const gchar * filename) { @@ -3739,20 +3737,6 @@ gst_omx_set_default_role (GstOMXClassData * class_data, class_data->component_role = default_role; } -void -gst_omx_buffer_set_omx_buf (GstBuffer * buffer, GstOMXBuffer * omx_buf) -{ - gst_mini_object_set_qdata (GST_MINI_OBJECT_CAST (buffer), - gst_omx_buffer_data_quark, omx_buf, NULL); -} - -GstOMXBuffer * -gst_omx_buffer_get_omx_buf (GstBuffer * buffer) -{ - return gst_mini_object_get_qdata (GST_MINI_OBJECT_CAST (buffer), - gst_omx_buffer_data_quark); -} - static void _class_init (gpointer g_class, gpointer data) { @@ -3923,8 +3907,6 @@ plugin_init (GstPlugin * plugin) GST_DEBUG_CATEGORY_INIT (OMX_API_TRACE, "OMX_API_TRACE", 0, "gst-omx performace"); - gst_omx_buffer_data_quark = g_quark_from_static_string ("GstOMXBufferData"); - /* Read configuration file gstomx.conf from the preferred * configuration directories */ env_config_dir = g_strdup (g_getenv (*env_config_name)); diff --git a/omx/gstomx.h b/omx/gstomx.h index 4b61343..8ffef39 100644 --- a/omx/gstomx.h +++ b/omx/gstomx.h @@ -483,9 +483,6 @@ gboolean gst_omx_buffer_import_fd (GstOMXBuffer * buffer, GstBuffer * i void gst_omx_set_default_role (GstOMXClassData *class_data, const gchar *default_role); -void gst_omx_buffer_set_omx_buf (GstBuffer * buffer, GstOMXBuffer * omx_buf); -GstOMXBuffer * gst_omx_buffer_get_omx_buf (GstBuffer * buffer); - /* refered by plugin_init */ GST_DEBUG_CATEGORY_EXTERN (gst_omx_video_debug_category); -- cgit v1.2.1