diff options
author | Matej Knopp <matej.knopp@gmail.com> | 2013-03-30 17:39:39 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-04-04 10:44:13 +0200 |
commit | c78cbd0d95a2608656b739d6c17e57f49433e288 (patch) | |
tree | 19e05eaa22c31587d887fbcef1b4384e4d4af0f2 | |
parent | e58f838ca3a69c5eb2efcb01dc033097e31b5d83 (diff) |
videofilter: add caps to pool config
Does not cause problems but it fixes a warning in the log.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=696916
-rw-r--r-- | gst-libs/gst/video/gstvideofilter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/video/gstvideofilter.c b/gst-libs/gst/video/gstvideofilter.c index 498abf208..f36c88404 100644 --- a/gst-libs/gst/video/gstvideofilter.c +++ b/gst-libs/gst/video/gstvideofilter.c @@ -126,13 +126,13 @@ gst_video_filter_decide_allocation (GstBaseTransform * trans, GstQuery * query) GstStructure *config; guint min, max, size; gboolean update_pool; + GstCaps *outcaps = NULL; if (gst_query_get_n_allocation_pools (query) > 0) { gst_query_parse_nth_allocation_pool (query, 0, &pool, &size, &min, &max); update_pool = TRUE; } else { - GstCaps *outcaps; GstVideoInfo vinfo; gst_query_parse_allocation (query, &outcaps, NULL); @@ -148,6 +148,8 @@ gst_video_filter_decide_allocation (GstBaseTransform * trans, GstQuery * query) config = gst_buffer_pool_get_config (pool); gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META); + if (outcaps) + gst_buffer_pool_config_set_params (config, outcaps, size, 0, 0); gst_buffer_pool_set_config (pool, config); if (update_pool) |