Changeset 25056
- Timestamp:
- Dec 1, 2013, 3:03:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/mc/mc_videoplayer.h
r25055 r25056 643 643 drawscreen(loadmediadb, 0, 0); 644 644 sleep(2); 645 singlepicstart("/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0); 645 646 646 647 // show skin … … 751 752 else if(filelist->select != NULL && filelist->select->input != NULL) 752 753 { 754 755 char* tmpfilename = ostrcat(filelistpath->text, NULL, 0, 0); 756 753 757 // workaround dont open folder on rcchup 754 758 if(skip == 1) … … 758 762 skip = 0; 759 763 } 760 else 761 { 762 char* checkdvd = ostrcat(filelist->select->name, NULL, 0, 0); 763 string_tolower(checkdvd); 764 printf("1\n"); 765 if(ostrcmp(checkdvd, "video_ts") == 0) 766 { 767 printf("found video_ts folder\n"); 768 struct skin* dvdplayer = getplugin("DVD Player"); 769 if(dvdplayer != NULL) 764 else if(!ostrncmp("video_ts", string_tolower(basename(tmpfilename)), 8)) 765 { 766 struct skin* dvdplayer = getplugin("DVD Player"); 767 if(dvdplayer != NULL) 768 { 769 if(textbox(_("Message"), _("Found VIDEO_TS Folder, start with DVD-Player ?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 5, 0) == 1) 770 770 { 771 771 void (*startplugin)(char*, int); … … 779 779 } 780 780 } 781 drawscreen(apskin, 0, 0); 782 singlepicstart("/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0); 781 783 } 782 784 else … … 794 796 free(checkautoscan), checkautoscan = NULL; 795 797 } 796 free(checkdvd), checkdvd = NULL;797 }798 } 799 free(tmpfilename), tmpfilename = NULL; 798 800 } 799 801 else if(filelist->select != NULL && filelist->select->input == NULL) … … 984 986 clearscreen(blackscreen); 985 987 clearscreen(loadmediadb); 986 988 989 system("umount -a -f -t fuse.rarfs,iso9660,fuse.djmount,fuse.fusesmb,ftpfs"); 990 987 991 writevfdmenu("Mediacenter"); 988 992 debug(50, "closed");
Note: See TracChangeset
for help on using the changeset viewer.