pinossink: clear the cache

Now that we don't destroy the cache anymore when suspending, we need to
manually clear the buffers in the cache.
This commit is contained in:
Wim Taymans 2016-04-29 17:16:41 +02:00
parent 5c7447fb4d
commit 76afc1e330
3 changed files with 25 additions and 4 deletions

View file

@ -444,6 +444,8 @@ thread_error:
static gboolean
gst_pinos_socket_sink_close (GstPinosSocketSink * this)
{
gst_burst_cache_remove_buffers (this->cache);
GST_DEBUG ("context %p, loop %p", this->context, this->loop);
g_main_loop_quit (this->loop);
g_thread_join (this->thread);