mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
-good: fix for bufferpool API change
This commit is contained in:
parent
752a6778b2
commit
49af68ebf4
3 changed files with 5 additions and 2 deletions
|
@ -55,6 +55,7 @@
|
||||||
|
|
||||||
#include "gstwarp.h"
|
#include "gstwarp.h"
|
||||||
#include <gst/video/gstmetavideo.h>
|
#include <gst/video/gstmetavideo.h>
|
||||||
|
#include <gst/video/gstvideopool.h>
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
#define M_PI 3.14159265358979323846
|
#define M_PI 3.14159265358979323846
|
||||||
|
@ -255,7 +256,8 @@ gst_wraptv_setup_allocation (GstBaseTransform * trans, GstQuery * query)
|
||||||
GstStructure *config;
|
GstStructure *config;
|
||||||
|
|
||||||
config = gst_buffer_pool_get_config (pool);
|
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);
|
gst_buffer_pool_set_config (pool, config);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
@ -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
|
/* 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
|
* it through the video info API. We could also see if the pool support this
|
||||||
* metadata and only activate it then. */
|
* 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);
|
gst_buffer_pool_set_config (pool, config);
|
||||||
/* and activate */
|
/* and activate */
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include <gst/video/video.h>
|
#include <gst/video/video.h>
|
||||||
#include <gst/video/gstmetavideo.h>
|
#include <gst/video/gstmetavideo.h>
|
||||||
|
#include <gst/video/gstvideopool.h>
|
||||||
#include <gst/rtp/gstbasertpdepayload.h>
|
#include <gst/rtp/gstbasertpdepayload.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
Loading…
Reference in a new issue