plugins: base: do not reset can_dmabuf
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 20 Dec 2019 14:38:42 +0000 (06:38 -0800)
committerU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 20 Dec 2019 14:38:42 +0000 (06:38 -0800)
Don't reset the can_dmabuf field.  This restores the
close/reset logic that existed prior to commit
ca2942176b5632e07eebac23336954f9aaf1cb26 in regards to
dmabuf support.

Plugins only call gst_vaapi_plugin_base_set_srcpad_can_dmabuf
once during startup, but may need to reset the other private
fields multiple times during negotiation.  Thus, can_dmabuf
should be exempt from the resets.

Fixes #208

gst/vaapi/gstvaapipluginbase.c

index eba6efd..7c16778 100644 (file)
@@ -68,7 +68,6 @@ gst_vaapi_pad_private_reset (GstVaapiPadPrivate * priv)
   priv->caps_is_raw = FALSE;
 
   g_clear_object (&priv->other_allocator);
-  priv->can_dmabuf = FALSE;
 }
 
 void