gstomx: remove gst_omx_buffer_set_omx_buf/get_omx_buf
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 26 Mar 2019 10:26:03 +0000 (12:26 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Thu, 25 Apr 2019 03:39:42 +0000 (09:09 +0530)
They are no longer used anywhere

omx/gstomx.c
omx/gstomx.h

index 038ce32..c5814ad 100644 (file)
@@ -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));
index 4b61343..8ffef39 100644 (file)
@@ -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);