From 2b07f18b7ef2b7f074b3c2f3931201660f7f1f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= Date: Thu, 9 Jun 2005 21:06:02 +0000 Subject: **BUGFIX** Fix bug in xxmc plugin, which only checked the requested format from the decoder plugin when the flag VO_NEW_SEQUENCE was set. This flag wasn't set often enough. CVS patchset: 7619 CVS date: 2005/06/09 21:06:02 --- src/video_out/video_out_xxmc.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/video_out/video_out_xxmc.c b/src/video_out/video_out_xxmc.c index ffdba63d9..fd2ba9911 100644 --- a/src/video_out/video_out_xxmc.c +++ b/src/video_out/video_out_xxmc.c @@ -18,7 +18,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: video_out_xxmc.c,v 1.16 2005/05/06 07:42:21 totte67 Exp $ + * $Id: video_out_xxmc.c,v 1.17 2005/06/09 21:06:02 totte67 Exp $ * * video_out_xxmc.c, X11 decoding accelerated video extension interface for xine * @@ -1221,16 +1221,14 @@ static void xxmc_do_update_frame(vo_driver_t *this_gen, xine_xxmc_t *xxmc = &frame->xxmc_data; xvmc_context_writer_lock( &this->xvmc_lock); - if ( flags & VO_NEW_SEQUENCE_FLAG ) { - if (xxmc_accel_update(this, this->last_accel_request, xxmc->acceleration) || - (this->xvmc_mpeg != xxmc->mpeg) || - (this->xvmc_width != width) || - (this->xvmc_height != height)) { - this->last_accel_request = xxmc->acceleration; - xxmc_xvmc_update_context(this, frame, width, height); - } else { - this->last_accel_request = xxmc->acceleration; - } + if (xxmc_accel_update(this, this->last_accel_request, xxmc->acceleration) || + (this->xvmc_mpeg != xxmc->mpeg) || + (this->xvmc_width != width) || + (this->xvmc_height != height)) { + this->last_accel_request = xxmc->acceleration; + xxmc_xvmc_update_context(this, frame, width, height); + } else { + this->last_accel_request = xxmc->acceleration; } if (this->contextActive) -- cgit v1.2.3