summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapipluginutil.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-05-08 15:54:09 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-05-12 12:19:57 +0200
commit3024640d4f7b0dd5450e99e8c0ec3dcda9c48a8d (patch)
tree68fceef416d17434c2503815aaac5e2c7764f5c7 /gst/vaapi/gstvaapipluginutil.c
parentbe40a1d479794539bc335ecba45b3a012489eecf (diff)
plugins: remove gstreamer-0.10 crumbs
GstVideoContext was used in gstreamer-0.10, which is not supported anymore. Still, its definition was still in the code. This patch removes it. https://bugzilla.gnome.org/show_bug.cgi?id=749113
Diffstat (limited to 'gst/vaapi/gstvaapipluginutil.c')
-rw-r--r--gst/vaapi/gstvaapipluginutil.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c
index cb490601..64bc3ba2 100644
--- a/gst/vaapi/gstvaapipluginutil.c
+++ b/gst/vaapi/gstvaapipluginutil.c
@@ -247,18 +247,14 @@ gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object)
}
gboolean
-gst_vaapi_ensure_display (gpointer element, GstVaapiDisplayType type)
+gst_vaapi_ensure_display (GstElement * element, GstVaapiDisplayType type)
{
GstVaapiPluginBase *const plugin = GST_VAAPI_PLUGIN_BASE (element);
GstVaapiDisplay *display;
- GstVideoContext *context;
- g_return_val_if_fail (GST_IS_VIDEO_CONTEXT (element), FALSE);
+ g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
- context = GST_VIDEO_CONTEXT (element);
- g_return_val_if_fail (context != NULL, FALSE);
-
- gst_vaapi_video_context_prepare (context, display_types);
+ gst_vaapi_video_context_prepare (element, display_types);
/* Neighbour found and it updated the display */
if (gst_vaapi_plugin_base_has_display_type (plugin, type))
@@ -272,7 +268,7 @@ gst_vaapi_ensure_display (gpointer element, GstVaapiDisplayType type)
if (!display)
return FALSE;
- gst_vaapi_video_context_propagate (context, display);
+ gst_vaapi_video_context_propagate (element, display);
GST_VAAPI_PLUGIN_BASE_DISPLAY_REPLACE (plugin, display);
gst_vaapi_display_unref (display);
return TRUE;