mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vaapipostproc: always activate buffer pool
The vaapipostproc has a proxy flag to know if the the buffer pool is already active. But this fails in some situations where it is needed to renegotiate the buffer pool. This patch removes that flag so the renegotiation is done whenever is required. https://bugzilla.gnome.org/show_bug.cgi?id=745535
This commit is contained in:
parent
7524b5eea6
commit
98655a195f
2 changed files with 2 additions and 8 deletions
|
@ -299,7 +299,6 @@ gst_vaapipostproc_destroy_filter (GstVaapiPostproc * postproc)
|
|||
}
|
||||
gst_vaapi_filter_replace (&postproc->filter, NULL);
|
||||
gst_vaapi_video_pool_replace (&postproc->filter_pool, NULL);
|
||||
postproc->filter_pool_active = FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -333,7 +332,6 @@ gst_vaapipostproc_stop (GstBaseTransform * trans)
|
|||
|
||||
ds_reset (&postproc->deinterlace_state);
|
||||
gst_vaapi_plugin_base_close (GST_VAAPI_PLUGIN_BASE (postproc));
|
||||
postproc->filter_pool_active = FALSE;
|
||||
|
||||
postproc->field_duration = GST_CLOCK_TIME_NONE;
|
||||
gst_video_info_init(&postproc->sinkpad_info);
|
||||
|
@ -388,11 +386,8 @@ create_output_buffer (GstVaapiPostproc * postproc)
|
|||
|
||||
g_return_val_if_fail (pool != NULL, NULL);
|
||||
|
||||
if (!postproc->filter_pool_active) {
|
||||
if (!gst_buffer_pool_set_active (pool, TRUE))
|
||||
goto error_activate_pool;
|
||||
postproc->filter_pool_active = TRUE;
|
||||
}
|
||||
if (!gst_buffer_pool_set_active (pool, TRUE))
|
||||
goto error_activate_pool;
|
||||
|
||||
outbuf = NULL;
|
||||
ret = gst_buffer_pool_acquire_buffer (pool, &outbuf, NULL);
|
||||
|
|
|
@ -136,7 +136,6 @@ struct _GstVaapiPostproc
|
|||
GPtrArray *filter_ops;
|
||||
GstVaapiVideoPool *filter_pool;
|
||||
GstVideoInfo filter_pool_info;
|
||||
gboolean filter_pool_active;
|
||||
GArray *filter_formats;
|
||||
GstVideoFormat format; /* output video format (encoded) */
|
||||
guint width;
|
||||
|
|
Loading…
Reference in a new issue