Changeset 39774


Ignore:
Timestamp:
01/18/17 05:25:11 (7 years ago)
Author:
obi
Message:

updaten player

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/player.h

    r39768 r39774  
    12501250                }
    12511251#else
    1252     player->manager->video->Command(player, MANAGER_REGISTER_UPDATED_TRACK_INFO, UpdateVideoTrack);
    1253     if (strncmp(file, "rtmp", 4) && strncmp(file, "ffrtmp", 4))
    1254     {
    1255         player->playback->noprobe = 1;
    1256     }
    1257 
    1258         char* audioFile = NULL;
    1259     PlayFiles_t playbackFiles = {tmpfile, NULL};
    1260     if('\0' != audioFile[0])
    1261     {
    1262         playbackFiles.szSecondFile = audioFile;
    1263     }
    1264 
    1265         if(player->playback->Command(player, PLAYBACK_OPEN, &playbackFiles) < 0)
    1266         {
    1267                 free(player); player = NULL;
    1268                 free(tmpfile);
    1269                 return 1;
    1270         }
     1252            player->manager->video->Command(player, MANAGER_REGISTER_UPDATED_TRACK_INFO, UpdateVideoTrack);
     1253            if (strncmp(file, "rtmp", 4) && strncmp(file, "ffrtmp", 4))
     1254            {
     1255                player->playback->noprobe = 1;
     1256            }
     1257       
     1258                char* audioFile = NULL;
     1259            PlayFiles_t playbackFiles = {tmpfile, NULL};
     1260            if('\0' != audioFile[0])
     1261            {
     1262                playbackFiles.szSecondFile = audioFile;
     1263            }
     1264
     1265                //for subtitle
     1266                SubtitleOutputDef_t subout;
     1267
     1268                subout.screen_width = skinfb->width;
     1269                subout.screen_height = skinfb->height;
     1270                subout.framebufferFD = skinfb->fd;
     1271                subout.destination = (uint32_t *)skinfb->fb;
     1272                subout.destStride = skinfb->pitch;
     1273                subout.shareFramebuffer = 1;
     1274                subout.framebufferBlit = blitfb1;
     1275
     1276                player->output->subtitle->Command(player, (OutputCmd_t)OUTPUT_SET_SUBTITLE_OUTPUT, (void*)&subout);
     1277
     1278                if(player->playback->Command(player, PLAYBACK_OPEN, &playbackFiles) < 0)
     1279                {
     1280                        free(player); player = NULL;
     1281                        free(tmpfile);
     1282                        return 1;
     1283                }
    12711284#endif         
    12721285
Note: See TracChangeset for help on using the changeset viewer.