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:
Wim Taymans 2011-06-21 12:32:46 +02:00
parent 872e7d52df
commit 36c111a844

View file

@ -482,6 +482,8 @@ gst_buffer_pool_get_config (GstBufferPool * pool)
return result;
}
static const gchar *empty_meta[] = { NULL };
/**
* gst_buffer_pool_get_metas:
* @pool: a #GstBufferPool
@ -505,7 +507,7 @@ gst_buffer_pool_get_metas (GstBufferPool * pool)
if (G_LIKELY (pclass->get_metas))
result = pclass->get_metas (pool);
else
result = NULL;
result = empty_meta;
return result;
}