From b135ff0f8c4d1876eea8ecc81e2a821ec8e9cb9a Mon Sep 17 00:00:00 2001 From: alwin Date: Thu, 31 Mar 2005 14:24:17 +0000 Subject: fix for the segfaults when displaying videos (it just had sometimes invalid inputimages when repainting) --- diff --git a/noncore/multimedia/opieplayer2/xinevideowidget.cpp b/noncore/multimedia/opieplayer2/xinevideowidget.cpp index 1ac9277..9e86041 100644 --- a/noncore/multimedia/opieplayer2/xinevideowidget.cpp +++ b/noncore/multimedia/opieplayer2/xinevideowidget.cpp @@ -289,6 +289,8 @@ void XineVideoWidget::setVideoFrame ( uchar* img, int w, int h, int bpl ) // only repaint the area that *really* needs to be repainted repaint ((( m_thisframe & m_lastframe ) != m_lastframe ) ? m_lastframe : m_thisframe, false ); + // ensure that we always have a valid frame! + m_buff = 0; } void XineVideoWidget::resizeEvent ( QResizeEvent * ) -- cgit v0.9.0.2