Changeset 40409 for titan/titan/player.h
- Timestamp:
- 05/11/17 20:06:01 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/player.h
r40368 r40409 27 27 extern ManagerHandler_t ManagerHandler; 28 28 29 #ifdef BETA29 #ifdef EXTEPLAYER3 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 1194 1194 player->manager = &ManagerHandler; 1195 1195 1196 //#ifndef BETA1196 //#ifndef EXTEPLAYER3 1197 1197 //add container befor open, so we can set buffer size 1198 1198 char* extffm = getfilenameext(tmpfile); … … 1210 1210 if(player && player->container && player->container->selectedContainer) 1211 1211 { 1212 #ifndef BETA1212 #ifndef EXTEPLAYER3 1213 1213 int32_t size = getconfigint("playerbuffersize", NULL); 1214 1214 int32_t seektime = getconfigint("playerbufferseektime", NULL); … … 1234 1234 1235 1235 debug(150, "eplayername = %s", player->output->Name); 1236 #ifdef BETA1236 #ifdef EXTEPLAYER3 1237 1237 // make sure to kill myself when parent dies 1238 1238 prctl(PR_SET_PDEATHSIG, SIGKILL); … … 1244 1244 player->output->Command(player, OUTPUT_ADD, "video"); 1245 1245 player->output->Command(player, OUTPUT_ADD, "subtitle"); 1246 #ifndef BETA1246 #ifndef EXTEPLAYER3 1247 1247 //for subtitle 1248 1248 // SubtitleOutputDef_t subout; … … 2153 2153 #ifdef EPLAYER3 2154 2154 int speedmap = 0; 2155 #ifdef BETA2155 #ifdef EXTEPLAYER3 2156 2156 if (speed < 2) speed = 2; 2157 2157 if (speed > 8) speed = 8; … … 2260 2260 { 2261 2261 #ifdef EPLAYER3 2262 #ifdef BETA2262 #ifdef EXTEPLAYER3 2263 2263 int64_t sectmp = (int64_t)sec; 2264 2264 if(player && player->playback) … … 2426 2426 char** playergettracklist(int type) 2427 2427 { 2428 #ifdef BETA2428 #ifdef EXTEPLAYER3 2429 2429 #ifdef EPLAYER3 2430 2430 TrackDescription_t *TrackList = NULL; … … 2464 2464 } 2465 2465 2466 #ifdef BETA2466 #ifdef EXTEPLAYER3 2467 2467 TrackList2 = calloc(1, sizeof(char *) * ((100 * 2) + 1)); 2468 2468 … … 2705 2705 //////////////////////////////NEUER CODE ////////////////////////////// 2706 2706 2707 #ifdef BETA2707 #ifdef EXTEPLAYER3 2708 2708 #ifdef EPLAYER3 2709 2709 return TrackList2; … … 2803 2803 unsigned long long playergetpts() 2804 2804 { 2805 #ifdef BETA2805 #ifdef EXTEPLAYER3 2806 2806 #ifdef EPLAYER3 2807 2807 int64_t pts = 0; … … 2821 2821 player->playback->Command(player, PLAYBACK_PTS, &pts); 2822 2822 sec = pts / 90000; 2823 #ifdef BETA2823 #ifdef EXTEPLAYER3 2824 2824 debug(150, "Pts = %02d:%02d:%02d (%lld sec)", (int)((sec / 60) / 60) % 60, (int)(sec / 60) % 60, (int)sec % 60, sec); 2825 2825 #else … … 2906 2906 double playergetlength() 2907 2907 { 2908 #ifdef BETA2908 #ifdef EXTEPLAYER3 2909 2909 #ifdef EPLAYER3 2910 2910 int64_t length = 0; … … 2921 2921 player->playback->Command(player, PLAYBACK_LENGTH, &length); 2922 2922 if(length < 0) length = 0; 2923 #ifdef BETA2923 #ifdef EXTEPLAYER3 2924 2924 debug(150, "Length = %02d:%02d:%02d (%lld sec)", (int)((length / 60) / 60) % 60, (int)(length / 60) % 60, (int)length % 60, length); 2925 2925 #else … … 3010 3010 if(player && player->output && player->output->subtitle) 3011 3011 player->output->subtitle->Command(player, (OutputCmd_t)OUTPUT_STOP, NULL); 3012 #ifndef BETA3012 #ifndef EXTEPLAYER3 3013 3013 if(player && player->container && player->container->assContainer) 3014 3014 {
Note: See TracChangeset
for help on using the changeset viewer.