summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapivideobuffer.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2015-03-19 21:20:26 +0100
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-11-24 18:32:34 +0100
commit267422dde51e1c332b77d8b0a89255305485aec3 (patch)
treea5104a29109c7ecaf0556771adfc6e76a7650873 /gst/vaapi/gstvaapivideobuffer.c
parent3fccc8327887133cd85077f58eae49cd6b622108 (diff)
remove the video converter from vaapi buffer meta
Since all the video converter were deprecated in gstreamer-1.2, we don't need to handle them anymore in the vaapi's buffer meta. This patch removes its usage and the buffer meta's API for that. https://bugzilla.gnome.org/show_bug.cgi?id=745728
Diffstat (limited to 'gst/vaapi/gstvaapivideobuffer.c')
-rw-r--r--gst/vaapi/gstvaapivideobuffer.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/gst/vaapi/gstvaapivideobuffer.c b/gst/vaapi/gstvaapivideobuffer.c
index 9d047e73..af79338b 100644
--- a/gst/vaapi/gstvaapivideobuffer.c
+++ b/gst/vaapi/gstvaapivideobuffer.c
@@ -33,25 +33,6 @@
#include "gstcompat.h"
#include "gstvaapivideobuffer.h"
-static inline GstBuffer *
-gst_surface_buffer_new (void)
-{
- return gst_buffer_new ();
-}
-
-static GFunc
-get_surface_converter (GstVaapiDisplay * display)
-{
- GFunc func;
-
- switch (gst_vaapi_display_get_class_type (display)) {
- default:
- func = NULL;
- break;
- }
- return func;
-}
-
static GstBuffer *
new_vbuffer (GstVaapiVideoMeta * meta)
{
@@ -59,10 +40,7 @@ new_vbuffer (GstVaapiVideoMeta * meta)
g_return_val_if_fail (meta != NULL, NULL);
- gst_vaapi_video_meta_set_surface_converter (meta,
- get_surface_converter (gst_vaapi_video_meta_get_display (meta)));
-
- buffer = gst_surface_buffer_new ();
+ buffer = gst_buffer_new ();
if (buffer)
gst_buffer_set_vaapi_video_meta (buffer, meta);
gst_vaapi_video_meta_unref (meta);
@@ -80,7 +58,7 @@ gst_vaapi_video_buffer_new (GstVaapiVideoMeta * meta)
GstBuffer *
gst_vaapi_video_buffer_new_empty (void)
{
- return gst_surface_buffer_new ();
+ return gst_buffer_new ();
}
GstBuffer *