changeset 34456:d04da1858866

Fix bug with VCD stream calling DVD code. Additionally, remove unnecessary #ifdef.
author ib
date Thu, 12 Jan 2012 10:39:37 +0000
parents 00cf27b14c15
children 220497708307
files gui/ui/main.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/main.c	Thu Jan 12 10:31:39 2012 +0000
+++ b/gui/ui/main.c	Thu Jan 12 10:39:37 2012 +0000
@@ -392,10 +392,9 @@
 	  default: movie_aspect=-1;
 	 }
 	wsClearWindow( guiApp.subWindow );
-#ifdef CONFIG_DVDREAD
-	if ( guiInfo.StreamType == STREAMTYPE_VCD || guiInfo.StreamType == STREAMTYPE_DVD ) uiEventHandling( ivPlayDVD, 0 );
+	if ( guiInfo.StreamType == STREAMTYPE_VCD ) uiEventHandling( evPlayVCD, 0 );
+	 else if ( guiInfo.StreamType == STREAMTYPE_DVD ) uiEventHandling( ivPlayDVD, 0 );
 	 else
-#endif
 	 guiInfo.NewPlay=GUI_FILE_NEW;
 	break;