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

@ -272,6 +272,7 @@ void gst_burst_cache_get_limits (GstBurstCache *cache,
void gst_burst_cache_queue_buffer (GstBurstCache *cache,
GstBuffer *buffer);
void gst_burst_cache_remove_buffers (GstBurstCache *cache);
GstBurstCacheReader * gst_burst_cache_reader_new (GstBurstCache *cache,
GstBurstCacheReaderCallback callback,
@ -292,7 +293,7 @@ gboolean gst_burst_cache_error_reader (GstBurstCache *cache,
GstBurstCacheReader *reader,
GError *error);
void gst_burst_cache_clear_readers (GstBurstCache * cache);
void gst_burst_cache_remove_readers (GstBurstCache * cache);
GstBurstCacheResult gst_burst_cache_get_buffer (GstBurstCache *cache,