Commit fcf5e389 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

videoencoder: Hold the stream lock when reconfiguring the element

parent d55d7fdc
......@@ -1455,13 +1455,13 @@ gst_video_encoder_allocate_output_frame (GstVideoEncoder *
g_return_val_if_fail (frame->output_buffer == NULL, GST_FLOW_ERROR);
g_return_val_if_fail (size > 0, GST_FLOW_ERROR);
if (G_UNLIKELY (encoder->priv->output_state_changed
|| (encoder->priv->output_state
&& gst_pad_check_reconfigure (encoder->srcpad))))
gst_video_encoder_set_src_caps (encoder);
GST_LOG_OBJECT (encoder, "alloc buffer size %d", size);
frame->output_buffer =
gst_buffer_new_allocate (encoder->priv->allocator, size,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment