basesink: copy last_sample on DRAIN
authorWim Taymans <wtaymans@redhat.com>
Mon, 24 Mar 2014 15:34:27 +0000 (16:34 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 24 Mar 2014 15:34:27 +0000 (16:34 +0100)
commit093574053fae243ec5fcfd6adae8185053b1e896
tree8e8c829320764e39556e01258c44358985917323
parentee348fe7cbf70c1185875f0a617db2ca32074fc6
basesink: copy last_sample on DRAIN

Make sure we don't hold a ref to a buffer from before the DRAIN query by
making a copy of the last_buffer.
libs/gst/base/gstbasesink.c