gstvaapivideocontext: remove unused parameter

gst_vaapi_video_context_prepare() received an unused parameter. This patch
removes it and the structure passed by the caller.

This a left over of "Removal of gstreamer-1.0 support" (commit 8b36e25f).

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
This commit is contained in:
Víctor Manuel Jáquez Leal 2015-08-06 13:07:53 +02:00
parent 696b446f09
commit de1bc55ceb
3 changed files with 3 additions and 22 deletions

View file

@ -42,25 +42,6 @@
#include "gstvaapipluginutil.h" #include "gstvaapipluginutil.h"
#include "gstvaapipluginbase.h" #include "gstvaapipluginbase.h"
/* Preferred first */
static const char *display_types[] = {
"gst-vaapi-display",
"vaapi-display",
#if USE_WAYLAND
"wl-display",
"wl-display-name",
#endif
#if USE_X11
"x11-display",
"x11-display-name",
#endif
#if USE_DRM
"drm-device",
"drm-device-path",
#endif
NULL
};
typedef GstVaapiDisplay *(*GstVaapiDisplayCreateFunc) (const gchar *); typedef GstVaapiDisplay *(*GstVaapiDisplayCreateFunc) (const gchar *);
typedef GstVaapiDisplay *(*GstVaapiDisplayCreateFromHandleFunc) (gpointer); typedef GstVaapiDisplay *(*GstVaapiDisplayCreateFromHandleFunc) (gpointer);
@ -254,7 +235,7 @@ gst_vaapi_ensure_display (GstElement * element, GstVaapiDisplayType type)
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE); g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
gst_vaapi_video_context_prepare (element, display_types); gst_vaapi_video_context_prepare (element);
/* Neighbour found and it updated the display */ /* Neighbour found and it updated the display */
if (gst_vaapi_plugin_base_has_display_type (plugin, type)) if (gst_vaapi_plugin_base_has_display_type (plugin, type))

View file

@ -111,7 +111,7 @@ run_context_query (GstElement * element, GstQuery * query)
} }
void void
gst_vaapi_video_context_prepare (GstElement * element, const gchar ** types) gst_vaapi_video_context_prepare (GstElement * element)
{ {
GstContext *context; GstContext *context;
GstQuery *query; GstQuery *query;

View file

@ -43,7 +43,7 @@ gst_vaapi_video_context_get_display (GstContext * context,
G_GNUC_INTERNAL G_GNUC_INTERNAL
void void
gst_vaapi_video_context_prepare (GstElement * element, const gchar ** types); gst_vaapi_video_context_prepare (GstElement * element);
G_GNUC_INTERNAL G_GNUC_INTERNAL
void void