GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

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

scaletempo: Ensure to reinit buffers whenever they were not allocated yet

That is, whenever we go through start/stop we have to ensure that on the
next opportunity the buffers are reallocated again. Otherwise the
buffers might be NULL because the element was reused with the same
configuration as before (i.e. set_caps() wouldn't have reinited the
parent 866fefbf
......@@ -699,6 +699,7 @@ gst_scaletempo_start (GstBaseTransform * trans)
gst_segment_init (&scaletempo->in_segment, GST_FORMAT_UNDEFINED);
gst_segment_init (&scaletempo->out_segment, GST_FORMAT_UNDEFINED);
scaletempo->reinit_buffers = TRUE;
return TRUE;
......@@ -718,6 +719,7 @@ gst_scaletempo_stop (GstBaseTransform * trans)
scaletempo->buf_pre_corr = NULL;
g_free (scaletempo->table_window);
scaletempo->table_window = NULL;
scaletempo->reinit_buffers = TRUE;
return TRUE;
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