-good: fix for bufferpool API change
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 29 Jul 2011 15:27:07 +0000 (17:27 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 29 Jul 2011 15:27:07 +0000 (17:27 +0200)
gst/effectv/gstwarp.c
gst/rtp/gstrtpvrawdepay.c
gst/rtp/gstrtpvrawdepay.h

index f4a617f..4882d6a 100644 (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;
index c54b665..eb27bcf 100644 (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 */
index 5cd5358..46d3695 100644 (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