glupload: move meta-data copy into gst-gl library
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sat, 14 Mar 2015 18:48:21 +0000 (19:48 +0100)
committerMatthew Waters <matthew@centricular.com>
Sat, 14 Mar 2015 19:53:02 +0000 (19:53 +0000)
commitd925e7fd1946697edaa193ba446dcc276afb1b58
treecda0daf433db2e7d42dc1279a88e1985e01374c3
parent48f8b5b46bae70477a59f615bdb075f02b7b90ac
glupload: move meta-data copy into gst-gl library

In some upload implementations the out buffer has more than one references,
turning the buffer not writable, so it won't be possible to modify its
meta-data.

This patch moves the meta-data copy before increasing the reference of the out
buffer.

https://bugzilla.gnome.org/show_bug.cgi?id=746173
ext/gl/gstgluploadelement.c
gst-libs/gst/gl/gstglupload.c