mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
[541/906] GstGLTestSrc: generate a GLBufferPool instead of a VideoBufferPool in decide_allocation
This commit is contained in:
parent
7c0c039933
commit
3be415e5c9
1 changed files with 3 additions and 2 deletions
|
@ -592,8 +592,9 @@ gst_gl_test_src_stop (GstBaseSrc * basesrc)
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_gl_test_src_decide_allocation (GstBaseSrc * trans, GstQuery * query)
|
gst_gl_test_src_decide_allocation (GstBaseSrc * basesrc, GstQuery * query)
|
||||||
{
|
{
|
||||||
|
GstGLTestSrc *src = GST_GL_TEST_SRC (basesrc);
|
||||||
GstBufferPool *pool = NULL;
|
GstBufferPool *pool = NULL;
|
||||||
GstStructure *config;
|
GstStructure *config;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
@ -617,7 +618,7 @@ gst_gl_test_src_decide_allocation (GstBaseSrc * trans, GstQuery * query)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pool)
|
if (!pool)
|
||||||
pool = gst_video_buffer_pool_new ();
|
pool = gst_gl_buffer_pool_new (src->display);
|
||||||
|
|
||||||
config = gst_buffer_pool_get_config (pool);
|
config = gst_buffer_pool_get_config (pool);
|
||||||
gst_buffer_pool_config_set_params (config, caps, size, min, max);
|
gst_buffer_pool_config_set_params (config, caps, size, min, max);
|
||||||
|
|
Loading…
Reference in a new issue