plugins: decoder can negotiate dmabuf downstream
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 3 Feb 2017 16:06:29 +0000 (17:06 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 3 Feb 2017 16:11:20 +0000 (17:11 +0100)
gst/vaapi/gstvaapipluginbase.c

index e863a68..85a5e0f 100644 (file)
@@ -569,7 +569,7 @@ ensure_srcpad_allocator (GstVaapiPluginBase * plugin, GstVideoInfo * vinfo,
   /* enable direct rendering if downstream requests raw video */
   if (caps && gst_caps_is_video_raw (caps)) {
     if (plugin->srcpad_can_dmabuf) {
-      if (GST_IS_BASE_TRANSFORM (plugin)) {
+      if (GST_IS_VIDEO_DECODER (plugin) || GST_IS_BASE_TRANSFORM (plugin)) {
         plugin->srcpad_allocator =
             gst_vaapi_dmabuf_allocator_new (plugin->display, vinfo, 0,
             GST_PAD_SRC);