-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 f4a617f3424b763e6bf101d2092d4884465d352b..4882d6ab8c0bf8a9b21183deda81fe26cbc7ef93 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 c54b665831ccb4fe8a65b9b0fb343c402236d4bd..eb27bcff70b17267da34dccf074d3022c7b2a9f1 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 5cd5358e332c04dbca1ff1e4d70e9184e21b5aa8..46d36953efddd10361723d12f940e57a681581b6 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