Changeset 44971


Ignore:
Timestamp:
12/08/20 20:35:48 (19 months ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/player.h

    r44969 r44971  
    133133{
    134134    funlockfile(stderr);
     135}
     136
     137static void TerminateWakeUp()
     138{
     139    int ret = write(g_pfd[1], "x", 1);
     140    if (ret != 1) {
     141        printf("TerminateWakeUp write return %d\n", ret);
     142    }
    135143}
    136144
     
    15131521#endif
    15141522
    1515                         player->container->selectedContainer->Command(player, CONTAINER_SET_BUFFER_SIZE, (void*)&size);
    1516                         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);                       
    15171525                }
    15181526               
     
    15281536                player->output->Command(player, OUTPUT_ADD, "video");
    15291537                player->output->Command(player, OUTPUT_ADD, "subtitle");
     1538#ifdef OEBUILD
     1539                player->output->Command(player, OUTPUT_SET_BUFFER_SIZE, (void*)&size);
     1540#endif
    15301541#ifndef EXTEPLAYER3
    15311542                //for subtitle
     
    15491560                }
    15501561#else
     1562                PlaybackDieNowRegisterCallback(TerminateWakeUp);
    15511563            player->manager->video->Command(player, MANAGER_REGISTER_UPDATED_TRACK_INFO, UpdateVideoTrack);
    15521564            if (strncmp(file, "rtmp", 4) && strncmp(file, "ffrtmp", 4))
     
    15811593                        return 1;
    15821594                }
    1583 #endif         
    1584 
    1585 
     1595#endif
    15861596                player->output->Command(player, OUTPUT_OPEN, NULL);
    15871597                player->playback->Command(player, PLAYBACK_PLAY, NULL);
     
    21682178#ifdef EPLAYER3
    21692179        if(player && player->container && player->container->selectedContainer)
    2170                 player->container->selectedContainer->Command(player, CONTAINER_GET_BUFFER_SIZE, (void*)&ret);
     2180//              player->container->selectedContainer->Command(player, CONTAINER_GET_BUFFER_SIZE, (void*)&ret);
     2181                player->output->Command(player, OUTPUT_GET_BUFFER_SIZE, &ret);
    21712182#endif
    21722183
     
    21802191#ifdef EPLAYER3
    21812192        if(player && player->container && player->container->selectedContainer)
    2182                 player->container->selectedContainer->Command(player, CONTAINER_GET_BUFFER_STATUS, (void*)&ret);
     2193//              player->container->selectedContainer->Command(player, CONTAINER_GET_BUFFER_STATUS, (void*)&ret);
     2194                player->output->Command(player, OUTPUT_GET_BUFFER_STATUS, &ret);
    21832195#endif
    21842196printf("playergetbufferstatus: %d\n", ret);
     
    22942306        if(player && player->playback)
    22952307                player->playback->Command(player, PLAYBACK_CLOSE, NULL);
     2308
     2309        PlaybackDieNow(1);
    22962310
    22972311//      if((status.play == 0 || status.pause == 1) && subtitlethread != NULL)
Note: See TracChangeset for help on using the changeset viewer.