gstreamer/libs/gst
Vincent Penquerc'h 12757e604a adapter: automatically unmap on clearing
When _clear gets called between _map and _unmap, buffers
will be unreffed. If the adapter was mapped, memory leaks
may occur.
While calling _clear between _map and _unmap does not seem
like such a great idea, this is possible in the audio
encoder base class, as _clear may be called in _finish_frame.
Since the audio encoder relies on flushing to keep track of
timestamps, delaying flushing till after handle_frame seems
dangerous.
So, we unmap on clear, as the next unmap will do nothing.
This makes _clear safe to call between _map and _unmap,
while avoiding leaking the mapped buffer.

https://bugzilla.gnome.org/show_bug.cgi?id=664133
2012-01-13 14:21:27 +01:00
..
base adapter: automatically unmap on clearing 2012-01-13 14:21:27 +01:00
check check: add macro to check for memory refcount 2012-01-05 13:09:29 +01:00
controller Fix printf format build warnings 2012-01-09 13:15:34 +00:00
helpers g_thread_init() is deprecated in glib master 2011-12-03 17:40:53 +00:00
net Merge remote-tracking branch 'origin/master' into 0.11 2011-12-04 15:38:09 +00:00
Makefile.am libs: remove gdp dataprotocol library 2011-12-25 23:41:50 +00:00