-good: fix for bufferpool API change

This commit is contained in:
Wim Taymans 2011-07-29 17:27:07 +02:00
parent 752a6778b2
commit 49af68ebf4
3 changed files with 5 additions and 2 deletions

View file

@ -55,6 +55,7 @@
#include "gstwarp.h"
#include <gst/video/gstmetavideo.h>
#include <gst/video/gstvideopool.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
@ -255,7 +256,8 @@ gst_wraptv_setup_allocation (GstBaseTransform * trans, GstQuery * query)
GstStructure *config;
config = gst_buffer_pool_get_config (pool);
gst_buffer_pool_config_add_meta (config, GST_META_API_VIDEO);
gst_buffer_pool_config_add_option (config,
GST_BUFFER_POOL_OPTION_META_VIDEO);
gst_buffer_pool_set_config (pool, config);
}
return TRUE;

View file

@ -151,7 +151,7 @@ gst_rtp_vraw_depay_negotiate_pool (GstRtpVRawDepay * depay, GstCaps * caps,
/* 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_meta (config, GST_META_API_VIDEO);
gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_META_VIDEO);
gst_buffer_pool_set_config (pool, config);
/* and activate */

View file

@ -23,6 +23,7 @@
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstmetavideo.h>
#include <gst/video/gstvideopool.h>
#include <gst/rtp/gstbasertpdepayload.h>
G_BEGIN_DECLS