Changeset 40409 for titan/titan/player.h


Ignore:
Timestamp:
05/11/17 20:06:01 (6 years ago)
Author:
obi
Message:

test exteplayer3 on nightly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/player.h

    r40368 r40409  
    2727extern ManagerHandler_t ManagerHandler;
    2828
    29 #ifdef BETA
     29#ifdef EXTEPLAYER3
    3030#include <stdlib.h>
    3131#include <stdio.h>
     
    11941194                player->manager = &ManagerHandler;
    11951195
    1196 //#ifndef BETA         
     1196//#ifndef EXTEPLAYER3           
    11971197                //add container befor open, so we can set buffer size
    11981198                char* extffm = getfilenameext(tmpfile);
     
    12101210                if(player && player->container && player->container->selectedContainer)
    12111211                {
    1212 #ifndef BETA
     1212#ifndef EXTEPLAYER3
    12131213                        int32_t size = getconfigint("playerbuffersize", NULL);
    12141214                        int32_t seektime = getconfigint("playerbufferseektime", NULL);
     
    12341234               
    12351235                debug(150, "eplayername = %s", player->output->Name);
    1236 #ifdef BETA
     1236#ifdef EXTEPLAYER3
    12371237            // make sure to kill myself when parent dies
    12381238            prctl(PR_SET_PDEATHSIG, SIGKILL);
     
    12441244                player->output->Command(player, OUTPUT_ADD, "video");
    12451245                player->output->Command(player, OUTPUT_ADD, "subtitle");
    1246 #ifndef BETA
     1246#ifndef EXTEPLAYER3
    12471247                //for subtitle
    12481248//              SubtitleOutputDef_t subout;
     
    21532153#ifdef EPLAYER3
    21542154        int speedmap = 0;
    2155 #ifdef BETA
     2155#ifdef EXTEPLAYER3
    21562156        if (speed < 2) speed = 2;
    21572157        if (speed > 8) speed = 8;
     
    22602260{
    22612261#ifdef EPLAYER3
    2262 #ifdef BETA
     2262#ifdef EXTEPLAYER3
    22632263        int64_t sectmp = (int64_t)sec;
    22642264        if(player && player->playback) 
     
    24262426char** playergettracklist(int type)
    24272427{
    2428 #ifdef BETA
     2428#ifdef EXTEPLAYER3
    24292429#ifdef EPLAYER3
    24302430        TrackDescription_t *TrackList = NULL;
     
    24642464                }
    24652465
    2466 #ifdef BETA
     2466#ifdef EXTEPLAYER3
    24672467                TrackList2 = calloc(1, sizeof(char *) * ((100 * 2) + 1));
    24682468
     
    27052705//////////////////////////////NEUER CODE //////////////////////////////
    27062706
    2707 #ifdef BETA
     2707#ifdef EXTEPLAYER3
    27082708#ifdef EPLAYER3
    27092709        return TrackList2;
     
    28032803unsigned long long playergetpts()
    28042804{
    2805 #ifdef BETA
     2805#ifdef EXTEPLAYER3
    28062806#ifdef EPLAYER3
    28072807        int64_t pts = 0;
     
    28212821                player->playback->Command(player, PLAYBACK_PTS, &pts);
    28222822                sec = pts / 90000;
    2823 #ifdef BETA
     2823#ifdef EXTEPLAYER3
    28242824                debug(150, "Pts = %02d:%02d:%02d (%lld sec)", (int)((sec / 60) / 60) % 60, (int)(sec / 60) % 60, (int)sec % 60, sec);
    28252825#else
     
    29062906double playergetlength()
    29072907{
    2908 #ifdef BETA
     2908#ifdef EXTEPLAYER3
    29092909#ifdef EPLAYER3
    29102910        int64_t length = 0;
     
    29212921                player->playback->Command(player, PLAYBACK_LENGTH, &length);
    29222922                if(length < 0) length = 0;
    2923 #ifdef BETA
     2923#ifdef EXTEPLAYER3
    29242924                debug(150, "Length = %02d:%02d:%02d (%lld sec)", (int)((length / 60) / 60) % 60, (int)(length / 60) % 60, (int)length % 60, length);
    29252925#else
     
    30103010        if(player && player->output && player->output->subtitle)
    30113011                player->output->subtitle->Command(player, (OutputCmd_t)OUTPUT_STOP, NULL);
    3012 #ifndef BETA
     3012#ifndef EXTEPLAYER3
    30133013        if(player && player->container && player->container->assContainer)
    30143014        {
Note: See TracChangeset for help on using the changeset viewer.