audio-converter: make a copy if we can't write in unpack
authorWim Taymans <wtaymans@redhat.com>
Wed, 10 Feb 2016 11:48:15 +0000 (12:48 +0100)
committerWim Taymans <wtaymans@redhat.com>
Wed, 10 Feb 2016 11:51:23 +0000 (12:51 +0100)
commit5cef3f31ad4454c2bf7cecbbb0e9b3d6dca60050
treed3db0432ada99a875b1ad52f6e038dcbc8f545e9
parent681b2b8d81d9584ff8f45f48916a8601afd46580
audio-converter: make a copy if we can't write in unpack

If we don't have writable memory, make sure to make a copy of the input
samples into a temporary (writable) buffer, even if we are dealing with
a native intermediate format that we don't need to call the unpack
function for.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=761655
gst-libs/gst/audio/audio-converter.c