mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
x11: call parent set_config
Call the parent set_config method to make it aware of the current config so that its default methods can do preallocation.
This commit is contained in:
parent
8750aea364
commit
084eac3a77
2 changed files with 4 additions and 2 deletions
|
@ -437,6 +437,7 @@ struct _GstXImageBufferPoolPrivate
|
|||
gboolean add_metavideo;
|
||||
};
|
||||
|
||||
#define gst_ximage_buffer_pool_parent_class parent_class
|
||||
G_DEFINE_TYPE (GstXImageBufferPool, gst_ximage_buffer_pool,
|
||||
GST_TYPE_BUFFER_POOL);
|
||||
|
||||
|
@ -480,7 +481,7 @@ ximage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
priv->add_metavideo =
|
||||
gst_buffer_pool_config_has_meta (config, GST_META_API_VIDEO);
|
||||
|
||||
return TRUE;
|
||||
return GST_BUFFER_POOL_CLASS (parent_class)->set_config (pool, config);
|
||||
|
||||
/* ERRORS */
|
||||
wrong_config:
|
||||
|
|
|
@ -470,6 +470,7 @@ struct _GstXvImageBufferPoolPrivate
|
|||
gboolean add_metavideo;
|
||||
};
|
||||
|
||||
#define gst_xvimage_buffer_pool_parent_class parent_class
|
||||
G_DEFINE_TYPE (GstXvImageBufferPool, gst_xvimage_buffer_pool,
|
||||
GST_TYPE_BUFFER_POOL);
|
||||
|
||||
|
@ -518,7 +519,7 @@ xvimage_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
if (priv->im_format == -1)
|
||||
goto unknown_format;
|
||||
|
||||
return TRUE;
|
||||
return GST_BUFFER_POOL_CLASS (parent_class)->set_config (pool, config);
|
||||
|
||||
/* ERRORS */
|
||||
wrong_config:
|
||||
|
|
Loading…
Reference in a new issue