diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-12-11 13:27:27 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-12-11 13:27:27 +0200 |
commit | fe2ae2c0f7fccb6e9cb483a188a15e9d4ea2909e (patch) | |
tree | 2d9b6c3e74407151fbbafdb20b38b065ce2f2233 /gst/audiofx | |
parent | 866fefbf5a67b4d2e6fc47990ec7d24b64eaa9e2 (diff) |
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
buffers).
https://bugzilla.gnome.org/show_bug.cgi?id=775898
Diffstat (limited to 'gst/audiofx')
-rw-r--r-- | gst/audiofx/gstscaletempo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/audiofx/gstscaletempo.c b/gst/audiofx/gstscaletempo.c index 2f14d6b3a..04f08e730 100644 --- a/gst/audiofx/gstscaletempo.c +++ b/gst/audiofx/gstscaletempo.c @@ -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; } |