diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/hermes/gstcolorspace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/hermes/gstcolorspace.c b/ext/hermes/gstcolorspace.c index 748b8c1d..e7dc9cf6 100644 --- a/ext/hermes/gstcolorspace.c +++ b/ext/hermes/gstcolorspace.c @@ -404,7 +404,6 @@ gst_colorspace_srcconnect_func (GstPad *pad, GstCaps *caps, gboolean newcaps) goto done; success: - space->pool = gst_pad_get_bufferpool (space->srcpad); done: return res; @@ -502,6 +501,9 @@ gst_colorspace_chain (GstPad *pad,GstBuffer *buf) dest_bytes = ((space->destbpp+7)/8); src_bytes = ((space->srcbpp+7)/8); + if (!space->pool) + space->pool = gst_pad_get_bufferpool (space->srcpad); + if (space->pool) { outbuf = gst_buffer_new_from_pool (space->pool, 0, 0); } |