mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
update for query api changes
This commit is contained in:
parent
ef07bb9d47
commit
ddd57f9107
1 changed files with 3 additions and 2 deletions
|
@ -281,11 +281,12 @@ gst_mpeg2dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
|
||||||
|
|
||||||
dec->has_cropping = FALSE;
|
dec->has_cropping = FALSE;
|
||||||
config = gst_buffer_pool_get_config (pool);
|
config = gst_buffer_pool_get_config (pool);
|
||||||
if (gst_query_has_allocation_meta (query, GST_VIDEO_META_API_TYPE)) {
|
if (gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL)) {
|
||||||
gst_buffer_pool_config_add_option (config,
|
gst_buffer_pool_config_add_option (config,
|
||||||
GST_BUFFER_POOL_OPTION_VIDEO_META);
|
GST_BUFFER_POOL_OPTION_VIDEO_META);
|
||||||
dec->has_cropping =
|
dec->has_cropping =
|
||||||
gst_query_has_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE);
|
gst_query_find_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE,
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dec->has_cropping) {
|
if (dec->has_cropping) {
|
||||||
|
|
Loading…
Reference in a new issue