mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
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:
parent
696b446f09
commit
de1bc55ceb
3 changed files with 3 additions and 22 deletions
|
@ -42,25 +42,6 @@
|
|||
#include "gstvaapipluginutil.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 *(*GstVaapiDisplayCreateFromHandleFunc) (gpointer);
|
||||
|
||||
|
@ -254,7 +235,7 @@ gst_vaapi_ensure_display (GstElement * element, GstVaapiDisplayType type)
|
|||
|
||||
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 */
|
||||
if (gst_vaapi_plugin_base_has_display_type (plugin, type))
|
||||
|
|
|
@ -111,7 +111,7 @@ run_context_query (GstElement * element, GstQuery * query)
|
|||
}
|
||||
|
||||
void
|
||||
gst_vaapi_video_context_prepare (GstElement * element, const gchar ** types)
|
||||
gst_vaapi_video_context_prepare (GstElement * element)
|
||||
{
|
||||
GstContext *context;
|
||||
GstQuery *query;
|
||||
|
|
|
@ -43,7 +43,7 @@ gst_vaapi_video_context_get_display (GstContext * context,
|
|||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
gst_vaapi_video_context_prepare (GstElement * element, const gchar ** types);
|
||||
gst_vaapi_video_context_prepare (GstElement * element);
|
||||
|
||||
G_GNUC_INTERNAL
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue