[vlc-commits] commit: Qt/EPG: deactivate crashing code on Win32 for now. ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Tue Jun 15 23:24:08 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jun 15 23:23:41 2010 +0200| [89c1b2c76e8922ebb44623c3b419d1b4a3a699f6] | committer: Jean-Baptiste Kempf 

Qt/EPG: deactivate crashing code on Win32 for now.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89c1b2c76e8922ebb44623c3b419d1b4a3a699f6
---

 modules/gui/qt4/components/epg/EPGView.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/epg/EPGView.cpp b/modules/gui/qt4/components/epg/EPGView.cpp
index 578f886..ea32110 100644
--- a/modules/gui/qt4/components/epg/EPGView.cpp
+++ b/modules/gui/qt4/components/epg/EPGView.cpp
@@ -60,7 +60,11 @@ void EPGView::setStartTime( const QDateTime& startTime )
 
     for ( int i = 0; i < itemList.count(); ++i )
     {
+#ifndef WIN32
         EPGItem* item = dynamic_cast<EPGItem*>( itemList.at( i ) );
+#else
+        EPGItem *item = NULL;
+#endif
         if ( !item ) continue;
         item->setStart( item->start().addSecs( diff ) );
     }
@@ -110,7 +114,11 @@ void EPGView::updateDuration()
 
     for ( int i = 0; i < list.count(); ++i )
     {
+#ifndef WIN32
         EPGItem* item = dynamic_cast<EPGItem*>( list.at( i ) );
+#else
+        EPGItem *item = NULL;
+#endif
         if ( !item ) continue;
         QDateTime itemEnd = item->start().addSecs( item->duration() );
 



More information about the vlc-commits mailing list