mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
bufferpool:check caps argument
Caps should be NULL or fixed when configured in a bufferpool
This commit is contained in:
parent
c066ea8c69
commit
2d19ed41c8
2 changed files with 1 additions and 1 deletions
|
@ -685,6 +685,7 @@ gst_buffer_pool_config_set_params (GstStructure * config, GstCaps * caps,
|
|||
{
|
||||
g_return_if_fail (config != NULL);
|
||||
g_return_if_fail (max_buffers == 0 || min_buffers <= max_buffers);
|
||||
g_return_if_fail (caps == NULL || gst_caps_is_fixed (caps));
|
||||
|
||||
gst_structure_id_set (config,
|
||||
GST_QUARK (CAPS), GST_TYPE_CAPS, caps,
|
||||
|
|
|
@ -179,7 +179,6 @@ GstStructure * gst_buffer_pool_get_config (GstBufferPool *pool);
|
|||
const gchar ** gst_buffer_pool_get_options (GstBufferPool *pool);
|
||||
gboolean gst_buffer_pool_has_option (GstBufferPool *pool, const gchar *option);
|
||||
|
||||
|
||||
/* helpers for configuring the config structure */
|
||||
void gst_buffer_pool_config_set_params (GstStructure *config, GstCaps *caps,
|
||||
guint size, guint min_buffers, guint max_buffers);
|
||||
|
|
Loading…
Reference in a new issue