mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
update for bufferpool changes
This commit is contained in:
parent
427ad305c5
commit
3d2527c0a2
1 changed files with 5 additions and 1 deletions
|
@ -1104,6 +1104,7 @@ gst_ffmpegdec_bufferpool (GstFFMpegDec * ffmpegdec, GstCaps * caps)
|
|||
guint edge;
|
||||
AVCodecContext *context = ffmpegdec->context;
|
||||
gboolean have_videometa, have_alignment;
|
||||
GstAllocationParams params = { 0, 0, 0, 15, };
|
||||
|
||||
GST_DEBUG_OBJECT (ffmpegdec, "setting up bufferpool");
|
||||
|
||||
|
@ -1138,7 +1139,10 @@ gst_ffmpegdec_bufferpool (GstFFMpegDec * ffmpegdec, GstCaps * caps)
|
|||
}
|
||||
|
||||
config = gst_buffer_pool_get_config (pool);
|
||||
gst_buffer_pool_config_set (config, caps, size, min, max, 0, 0, 15);
|
||||
gst_buffer_pool_config_set_params (config, caps, size, min, max);
|
||||
/* we are happy with the default allocator but we would like to have 16 bytes
|
||||
* aligned memory */
|
||||
gst_buffer_pool_config_set_allocator (config, NULL, ¶ms);
|
||||
|
||||
have_alignment =
|
||||
gst_buffer_pool_has_option (pool, GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT);
|
||||
|
|
Loading…
Reference in a new issue