mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
bufferpool: return empty metadata array
Return a string array with NULL instead of NULL from the default get_metas function.
This commit is contained in:
parent
872e7d52df
commit
36c111a844
1 changed files with 3 additions and 1 deletions
|
@ -482,6 +482,8 @@ gst_buffer_pool_get_config (GstBufferPool * pool)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const gchar *empty_meta[] = { NULL };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_buffer_pool_get_metas:
|
* gst_buffer_pool_get_metas:
|
||||||
* @pool: a #GstBufferPool
|
* @pool: a #GstBufferPool
|
||||||
|
@ -505,7 +507,7 @@ gst_buffer_pool_get_metas (GstBufferPool * pool)
|
||||||
if (G_LIKELY (pclass->get_metas))
|
if (G_LIKELY (pclass->get_metas))
|
||||||
result = pclass->get_metas (pool);
|
result = pclass->get_metas (pool);
|
||||||
else
|
else
|
||||||
result = NULL;
|
result = empty_meta;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue