Changeset 28002


Ignore:
Timestamp:
03/28/14 02:49:44 (10 years ago)
Author:
obi
Message:

optimize

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/keyactions.h

    r28000 r28002  
    6666                if(key == 3)
    6767                {
    68                         addmenulist(&mlist, "MediaCenter", NULL, NULL, 0, 0);
     68                        addmenulist(&mlist, "RecordPlayer", NULL, NULL, 0, 0);
     69
     70                        while(child != NULL)
     71                        {
     72                                if(child->del == PLUGINDELMARK && (status.security == 1 || (status.security == 0 && checkpluginskip(child->name) == 0)))
     73                                {
     74                                        if(!ostrncmp("Media Center", child->name, 12))
     75                                        {
     76                                                addmenulist(&mlist, "MediaCenter", NULL, child->pic, 0, 0);                     
     77                                        }
     78                                        else if(!ostrncmp("TiTan Mediathek", child->name, 15))
     79                                        {
     80                                                addmenulist(&mlist, "MediaThek", NULL, child->pic, 0, 0);
     81                                        }
     82                                        else if(!ostrncmp("Titan Media Center", child->name, 15))
     83                                        {
     84                                                addmenulist(&mlist, "TitanMediaCenter", NULL, child->pic, 0, 0);
     85                                        }
     86                                }
     87                                child = child->next;
     88                        }
     89                       
     90//                      addmenulist(&mlist, "MediaCenter", NULL, NULL, 0, 0);
    6991                //      addmenulist(&mlist, "VideoPlayer", NULL, NULL, 0, 0);
    7092                //      addmenulist(&mlist, "AudioPlayer", NULL, NULL, 0, 0);
    7193                //      addmenulist(&mlist, "PicturePlayer", NULL, NULL, 0, 0);
    72                         addmenulist(&mlist, "MediaThek", NULL, NULL, 0, 0);
     94//                      addmenulist(&mlist, "MediaThek", NULL, NULL, 0, 0);
    7395                        addmenulist(&mlist, "MiniPlayer", NULL, NULL, 0, 0);
    74                         addmenulist(&mlist, "RecordPlayer", NULL, NULL, 0, 0);
    7596                }
    7697                else
     
    222243        {
    223244                struct skin* pluginnode = getplugin("TiTan Mediathek");
     245                void (*startplugin)(void);
     246                status.infobaraktiv = 0;
     247                subtitlepause(1);
     248                status.infobar = 0;
     249
     250                if(pluginnode != NULL)
     251                {
     252                        startplugin = dlsym(pluginnode->pluginhandle, "start");
     253                        if(startplugin != NULL)
     254                        startplugin();
     255                }
     256                status.infobaraktiv = 1;
     257                drawscreen(skin, 0, 0);
     258                subtitlepause(0);
     259
     260                freemenulist(mlist, 1); mlist = NULL;
     261                resettvpic();
     262                return;
     263        }
     264        else if(ostrcmp(keyconf, "TitanMediaCenter") == 0)
     265        {
     266                struct skin* pluginnode = getplugin("Titan Media Center");
    224267                void (*startplugin)(void);
    225268                status.infobaraktiv = 0;
  • titan/titan/settings_mediabutton.h

    r28000 r28002  
    1717        free(tmptxt), tmptxt = NULL;
    1818
    19         addmenulist(&mlist, "MediaCenter", NULL, NULL, 0, 0);
    20 //      addmenulist(&mlist, "VideoPlayer", NULL, NULL, 0, 0);
    21 //      addmenulist(&mlist, "AudioPlayer", NULL, NULL, 0, 0);
    22 //      addmenulist(&mlist, "PicturePlayer", NULL, NULL, 0, 0);
    23         addmenulist(&mlist, "MediaThek", NULL, NULL, 0, 0);
     19        addmenulist(&mlist, "RecordPlayer", NULL, NULL, 0, 0);
     20
     21        while(child != NULL)
     22        {
     23                if(child->del == PLUGINDELMARK && (status.security == 1 || (status.security == 0 && checkpluginskip(child->name) == 0)))
     24                {
     25                        if(!ostrncmp("Media Center", child->name, 12))
     26                        {
     27                                addmenulist(&mlist, "MediaCenter", NULL, child->pic, 0, 0);                     
     28                        }
     29                        else if(!ostrncmp("TiTan Mediathek", child->name, 15))
     30                        {
     31                                addmenulist(&mlist, "MediaThek", NULL, child->pic, 0, 0);
     32                        }
     33                        else if(!ostrncmp("Titan Media Center", child->name, 15))
     34                        {
     35                                addmenulist(&mlist, "TitanMediaCenter", NULL, child->pic, 0, 0);
     36                        }
     37                }
     38                child = child->next;
     39        }
     40       
    2441        addmenulist(&mlist, "MiniPlayer", NULL, NULL, 0, 0);
    25         addmenulist(&mlist, "RecordPlayer", NULL, NULL, 0, 0);
    2642
    2743        char* mediakey = getconfig("mediakey", NULL);
Note: See TracChangeset for help on using the changeset viewer.