update for meta api change

This commit is contained in:
Wim Taymans 2011-10-31 02:24:30 +01:00
parent c944e225c8
commit fed7cbc8d2
2 changed files with 3 additions and 3 deletions

View file

@ -377,11 +377,11 @@ gst_mpeg2dec_negotiate_pool (GstMpeg2dec * dec, GstCaps * caps,
/* just set the option, if the pool can support it we will transparently use /* just set the option, 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 * it through the video info API. We could also see if the pool support this
* option and only activate it then. */ * option and only activate it then. */
gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_META_VIDEO); gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META);
/* check if downstream supports cropping */ /* check if downstream supports cropping */
dec->use_cropping = dec->use_cropping =
gst_query_has_allocation_meta (query, GST_META_API_VIDEO_CROP); gst_query_has_allocation_meta (query, GST_VIDEO_CROP_META_API);
gst_buffer_pool_set_config (pool, config); gst_buffer_pool_set_config (pool, config);
/* and activate */ /* and activate */

View file

@ -25,7 +25,7 @@
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/video/video.h> #include <gst/video/video.h>
#include <gst/video/gstvideopool.h> #include <gst/video/gstvideopool.h>
#include <gst/video/gstmetavideo.h> #include <gst/video/gstvideometa.h>
#include <mpeg2.h> #include <mpeg2.h>
G_BEGIN_DECLS G_BEGIN_DECLS