comparison gui/win32/interface.c @ 35159:ade40c1d69b8

Get rid of global variable dvd_title in GUI. Its usage is pointless anyway, because the GUI uses guiInfo.Track instead. As a result, it doesn't have to be global any longer and can be defined in stream/stream_dvd.c (where it belongs).
author ib
date Thu, 18 Oct 2012 12:17:58 +0000
parents b0133d910683
children 627bdd8915ca
comparison
equal deleted inserted replaced
35158:a78e2453e188 35159:ade40c1d69b8
578 video_id = -1; 578 video_id = -1;
579 dvdsub_id = -1; 579 dvdsub_id = -1;
580 vobsub_id = -1; 580 vobsub_id = -1;
581 stream_cache_size = -1; 581 stream_cache_size = -1;
582 autosync = 0; 582 autosync = 0;
583 dvd_title = 0;
584 force_fps = 0; 583 force_fps = 0;
585 if(!mygui->playlist->tracks) return 0; 584 if(!mygui->playlist->tracks) return 0;
586 switch(guiInfo.StreamType) 585 switch(guiInfo.StreamType)
587 { 586 {
588 case STREAMTYPE_FILE: 587 case STREAMTYPE_FILE:
671 guiInfo.Subtitles = dvdp->nr_of_subtitles; 670 guiInfo.Subtitles = dvdp->nr_of_subtitles;
672 memcpy(guiInfo.Subtitle, dvdp->subtitles, sizeof(dvdp->subtitles)); 671 memcpy(guiInfo.Subtitle, dvdp->subtitles, sizeof(dvdp->subtitles));
673 #endif 672 #endif
674 guiInfo.Chapter = dvd_chapter + 1; 673 guiInfo.Chapter = dvd_chapter + 1;
675 guiInfo.Angle = dvd_angle + 1; 674 guiInfo.Angle = dvd_angle + 1;
676 guiInfo.Track = dvd_title + 1;
677 break; 675 break;
678 } 676 }
679 break; 677 break;
680 } 678 }
681 case GUI_REDRAW: 679 case GUI_REDRAW: