From: Wim Taymans Date: Mon, 2 Apr 2012 10:48:45 +0000 (+0200) Subject: theoradec: deactivate pool on negotiation X-Git-Tag: RELEASE-0.11.90~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de7148a942c70a05a4e3bf816f6ae662e6e4e80d;p=platform%2Fupstream%2Fgst-plugins-base.git theoradec: deactivate pool on negotiation Deactivate the old bufferpool when we negotiate a new one. --- 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) {