Changeset 44974


Ignore:
Timestamp:
12/08/20 22:35:09 (2 years ago)
Author:
obi
Message:

fix buffering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/player.h

    r44972 r44974  
    15211521#endif
    15221522
    1523 //                      player->container->selectedContainer->Command(player, CONTAINER_SET_BUFFER_SIZE, (void*)&size);
    1524 //                      player->container->selectedContainer->Command(player, CONTAINER_SET_BUFFER_SEEK_TIME, (void*)&seektime);                       
     1523                        player->container->selectedContainer->Command(player, CONTAINER_SET_BUFFER_SIZE, (void*)&size);
     1524                        player->container->selectedContainer->Command(player, CONTAINER_SET_BUFFER_SEEK_TIME, (void*)&seektime);                       
    15251525                }
    15261526               
     
    15371537                player->output->Command(player, OUTPUT_ADD, "subtitle");
    15381538#ifdef OEBUILD
    1539                 int32_t* size = (int32_t*)getconfigint("playerbuffersize", NULL);
    1540                 player->output->Command(player, OUTPUT_SET_BUFFER_SIZE, (void*)&size);
     1539//              int32_t* size = (int32_t*)getconfigint("playerbuffersize", NULL);
     1540//printf("size: %d\n", size);
     1541//size = 10485760;
     1542//printf("size2: %d\n", size);
     1543
     1544//              player->output->Command(player, OUTPUT_SET_BUFFER_SIZE, (void*)&size);
    15411545#endif
    15421546#ifndef EXTEPLAYER3
     
    15611565                }
    15621566#else
     1567
     1568//uint32_t linuxDvbBufferSizeMB = 1024*1024*10;
     1569//              player->output->Command(player, OUTPUT_SET_BUFFER_SIZE, &linuxDvbBufferSizeMB);
     1570
    15631571                PlaybackDieNowRegisterCallback(TerminateWakeUp);
    15641572            player->manager->video->Command(player, MANAGER_REGISTER_UPDATED_TRACK_INFO, UpdateVideoTrack);
     
    21792187#ifdef EPLAYER3
    21802188        if(player && player->container && player->container->selectedContainer)
    2181 //              player->container->selectedContainer->Command(player, CONTAINER_GET_BUFFER_SIZE, (void*)&ret);
    2182                 player->output->Command(player, OUTPUT_GET_BUFFER_SIZE, &ret);
     2189                player->container->selectedContainer->Command(player, CONTAINER_GET_BUFFER_SIZE, (void*)&ret);
     2190//              player->output->Command(player, OUTPUT_GET_BUFFER_SIZE, &ret);
    21832191#endif
    21842192
     
    21922200#ifdef EPLAYER3
    21932201        if(player && player->container && player->container->selectedContainer)
    2194 //              player->container->selectedContainer->Command(player, CONTAINER_GET_BUFFER_STATUS, (void*)&ret);
    2195                 player->output->Command(player, OUTPUT_GET_BUFFER_STATUS, &ret);
     2202                player->container->selectedContainer->Command(player, CONTAINER_GET_BUFFER_STATUS, (void*)&ret);
     2203//              player->output->Command(player, OUTPUT_GET_BUFFER_STATUS, &ret);
    21962204#endif
    21972205printf("playergetbufferstatus: %d\n", ret);
Note: See TracChangeset for help on using the changeset viewer.