Revert "theoradec: Disable usage of crop meta"

This reverts commit da52868f46.
This commit is contained in:
Nicolas Dufresne 2015-03-24 15:47:20 -04:00
parent 9695222b0f
commit 6ba8d385e3

View file

@ -904,11 +904,7 @@ theora_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
gst_query_parse_nth_allocation_pool (query, 0, &pool, &size, &min, &max); gst_query_parse_nth_allocation_pool (query, 0, &pool, &size, &min, &max);
dec->can_crop = FALSE; dec->can_crop = FALSE;
config = gst_buffer_pool_get_config (pool); config = gst_buffer_pool_get_config (pool);
/* FIXME the usage of crop meta is incorrect */
#if 0
if (gst_query_find_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL)) { 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);
@ -916,7 +912,6 @@ theora_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
gst_query_find_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, gst_query_find_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE,
NULL); NULL);
} }
#endif
if (dec->can_crop) { if (dec->can_crop) {
GstVideoInfo *info = &dec->uncropped_info; GstVideoInfo *info = &dec->uncropped_info;