From de7148a942c70a05a4e3bf816f6ae662e6e4e80d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Apr 2012 12:48:45 +0200 Subject: [PATCH] theoradec: deactivate pool on negotiation Deactivate the old bufferpool when we negotiate a new one. --- ext/theora/gsttheoradec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index ed44141..9ecef7c 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -901,8 +901,10 @@ theora_negotiate (GstTheoraDec * dec) pool = gst_video_buffer_pool_new (); } - if (dec->pool) + if (dec->pool) { + gst_buffer_pool_set_active (dec->pool, FALSE); gst_object_unref (dec->pool); + } dec->pool = pool; if (dec->has_cropping) { -- 2.7.4