Ignore:
Timestamp:
Oct 11, 2018, 8:24:19 PM (9 months ago)
Author:
obi
Message:

mc update iptv player

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/mc/mc_iptvplayer.h

    r40379 r42897  
    1717        readmediadb(getconfig("mediadbfile", NULL), 0, 0);
    1818
    19         char* filename = NULL, *title = NULL, *currentdirectory = NULL, *selectedfile = NULL, *lastid = NULL, *tmpstr = NULL;
     19        char* filename = NULL, *title = NULL, *currentdirectory = NULL, *selectedfile = NULL, *lastid = NULL, *tmpstr = NULL, *showname = NULL;
    2020        int rcret = 0, rcwait = 1000, playerret = 0, flag = 4, skip = 0, eof = 0, playinfobarcount = 0, playinfobarstatus = 1, count = 0, tmpview = 0, playlist = 0, playertype = 0;
    2121        int videooff = 0;
     
    9393                        if(playinfobarstatus > 0)
    9494                        {
    95                                 if(videooff == 0) screenplayinfobar(filename, NULL, 0, playertype, 0);
     95                                if(videooff == 0) screenplayinfobar(filename, showname, 0, playertype, 0);
    9696                        }
    9797                        if(playinfobarstatus == 1 && playinfobarcount >= getconfigint("infobartimeout", NULL))
     
    115115                        }
    116116                        if((status.play == 1) || (status.pause == 1) || (status.playspeed != 0))
    117                                 playrcpause(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
     117                                playrcpause(filename, showname, &playinfobarstatus, &playinfobarcount, playertype, flag);
    118118                }
    119119                else if(rcret == getrcconfigint("rcplay", NULL))
    120120                {
    121121                        if((status.play == 1) || (status.pause == 1) || (status.playspeed != 0))
    122                                 playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
     122                                playrcplay(filename, showname, &playinfobarstatus, &playinfobarcount, playertype, flag);
    123123                        //showplaylist(1);
    124124                }
     
    238238                        }
    239239                        else
    240                                 playrcplay(filename, NULL, &playinfobarstatus, &playinfobarcount, playertype, flag);
     240                                playrcplay(filename, showname, &playinfobarstatus, &playinfobarcount, playertype, flag);
    241241
    242242                        if(status.play == 0 && status.pause == 0)
     
    338338                        {
    339339                                debug(50, "listbox->select->name: %s", listbox->select->name);
    340                                 filename = ostrcat("", listbox->select->name, 0, 0);
     340                                filename = ostrcat(listbox->select->name, NULL, 0, 0);
     341                                showname = ostrcat(listbox->select->text, NULL, 0, 0);
    341342
    342343                                changetext(b2, _("Playlist-Mode"));
     
    528529        free(lastid), lastid = NULL;
    529530        free(filename), filename = NULL;
     531        free(showname), showname = NULL;
    530532        free(currentdirectory), currentdirectory = NULL;
    531533        free(selectedfile), selectedfile = NULL;
Note: See TracChangeset for help on using the changeset viewer.