- gst_buffer_pool_config_set (config, caps, size, min, max, prefix, padding,
- alignment);
- /* just set the metadata, if the pool can support it we will transparently use
- * it through the video info API. We could also see if the pool support this
- * metadata and only activate it then. */
- gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META);
+ gst_buffer_pool_config_set (config, caps, size, min, max, 0, 0, 0);
+ if (gst_query_has_allocation_meta (query, GST_VIDEO_META_API_TYPE)) {
+ /* just set the metadata, if the pool can support it we will transparently use
+ * it through the video info API. We could also see if the pool support this
+ * metadata and only activate it then. */
+ gst_buffer_pool_config_add_option (config,
+ GST_BUFFER_POOL_OPTION_VIDEO_META);
+ }