From 713b77d1f50281457186da5401d6cfda62c034c6 Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Fri, 14 Mar 2003 19:05:40 +0000 Subject: don't bother reconfiguring postprocessing mode if new setting is 0 (ie off) CVS patchset: 4413 CVS date: 2003/03/14 19:05:40 --- src/libffmpeg/xine_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c index e873c4069..00c0f45c6 100644 --- a/src/libffmpeg/xine_decoder.c +++ b/src/libffmpeg/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.100 2003/03/14 17:46:05 jstembridge Exp $ + * $Id: xine_decoder.c,v 1.101 2003/03/14 19:05:40 jstembridge Exp $ * * xine decoder plugin using ffmpeg * @@ -218,7 +218,7 @@ static void pp_quality_cb(void *user_data, xine_cfg_entry_t *entry) { ff_video_decoder_t *this = class->ip; this->pp_quality = entry->num_value; - if(this->pp_mode) { + if(this->pp_mode && this->pp_quality > 0) { pp_free_mode(this->pp_mode); this->pp_mode = pp_get_mode_by_name_and_quality("hb:a,vb:a,dr:a", this->pp_quality); -- cgit v1.2.3