Changeset 18831 for titan/plugins/mc


Ignore:
Timestamp:
11/28/12 23:03:34 (11 years ago)
Author:
obi
Message:

[titan] mc ap/vp fix double mediadb scanning on playback

Location:
titan/plugins/mc
Files:
2 edited

Legend:

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

    r18828 r18831  
    3939        struct skin* b4 = getscreennode(apskin, "b4");
    4040
    41         struct skin* plot = getscreennode(apskin, "plot");
    4241        struct skin* title = getscreennode(apskin, "title");
    4342        struct skin* thumb = getscreennode(apskin, "thumb");
    44         struct skin* actorstext = getscreennode(apskin, "actorstext");
    4543        struct skin* actors = getscreennode(apskin, "actors");
    46         struct skin* genretext = getscreennode(apskin, "genretext");
    4744        struct skin* genre = getscreennode(apskin, "genre");
    48         struct skin* yeartext = getscreennode(apskin, "yeartext");
    4945        struct skin* year = getscreennode(apskin, "year");
    50         struct skin* realnametext = getscreennode(apskin, "realnametext");
    5146        struct skin* realname = getscreennode(apskin, "realname");
    52         struct skin* albumtext = getscreennode(apskin, "albumtext");
    5347        struct skin* album = getscreennode(apskin, "album");
    5448
     
    420414
    421415                                writevfd("AudioPlayer Filelist-Mode");
     416                                unlink("/tmp/.autoscan");
     417                                unlink("/tmp/.autoscan.ap");
    422418//                      }
    423419                }
     
    454450                        writevfd("Mediacenter");
    455451                       
    456                         printf("exit: view=%d tmpview=%d\n", view, tmpview);                   
     452                        printf("exit: view=%d tmpview=%d\n", view, tmpview);
     453                        unlink("/tmp/.autoscan");
     454                        unlink("/tmp/.autoscan.ap");                   
    457455                        break;
    458456                }
     
    584582                                singlepicstart("/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0);
    585583
    586                                 if(getconfigint("mc_ap_autoscan", NULL) == 1)
    587                                 {
     584                                if(getconfigint("mc_ap_autoscan", NULL) == 1 && !file_exist("/tmp/.autoscan.ap"))
     585                                {
     586                                        writesys("/tmp/.autoscan.ap", "", 0);
    588587                                        writesys("/tmp/.autoscan", "", 0);
    589588                                        mediadbscan(filelistpath->text, 1001, 1);
  • titan/plugins/mc/mc_videoplayer.h

    r18830 r18831  
    337337                                singlepicstart("/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0);
    338338                                view = getconfigint("mc_vp_view", NULL);
     339                                printf("view in: %d\n", view);
     340                                printf("tmpview in: %d\n", tmpview);
    339341
    340342                                screenmc_videoplayer_settings();
     
    354356                                        free(tmpstr), tmpstr = NULL;
    355357                                }
     358
     359                                printf("1view in: %d\n", view);
     360                                printf("1tmpview in: %d\n", tmpview);
    356361                               
    357362                                mc_changeview(tmpview, filelist, apskin, flag);
     
    361366                                drawscreen(blackscreen, 0, 0);
    362367                                drawscreen(loadmediadb, 0, 0);
     368                                printf("2view in: %d\n", view);
     369                                printf("2tmpview in: %d\n", tmpview);
    363370       
    364371                                delownerrc(apskin);
     
    446453                        writevfd("VideoPlayer Filelist-Mode");
    447454                        unlink("/tmp/.autoscan");
     455                        unlink("/tmp/.autoscan.vp");
    448456                               
    449457//                      startmediadb();
     
    502510                        printf("exit: view=%d tmpview=%d\n", view, tmpview);
    503511                        unlink("/tmp/.autoscan");
     512                        unlink("/tmp/.autoscan.vp");
    504513                        break;
    505514                }
Note: See TracChangeset for help on using the changeset viewer.