Changeset 44967
- Timestamp:
- 12/08/20 15:17:20 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/player.h
r44953 r44967 64 64 extern void eac3_software_decoder_set(const int32_t val); 65 65 extern void mp3_software_decoder_set(const int32_t val); 66 #ifdef OEBUILD 166 #ifdef OEBUILD 67 67 extern void amr_software_decoder_set(const int32_t val); 68 68 extern void vorbis_software_decoder_set(const int32_t val); … … 71 71 extern void rtmp_proto_impl_set(const int32_t val); 72 72 extern void flv2mpeg4_converter_set(const int32_t val); 73 #ifdef OEBUILD 173 #ifdef OEBUILD 74 74 extern void sel_program_id_set(const int32_t val); 75 75 #endif … … 93 93 } 94 94 95 /* 96 static void SetNice(int prio) 97 { 98 #if 0 99 setpriority(PRIO_PROCESS, 0, -8); 100 101 int prio = sched_get_priority_max(SCHED_RR) / 2; 102 struct sched_param param = { 103 .sched_priority = prio 104 }; 105 sched_setscheduler(0, SCHED_RR, ¶m); 106 #else 107 int prevPrio = getpriority(PRIO_PROCESS, 0); 108 if (-1 == setpriority(PRIO_PROCESS, 0, prio)) 109 { 110 printf("setpriority - failed\n"); 111 } 112 #endif 113 } 114 */ 95 #ifdef OEBUILD 96 static int g_pfd[2] = {-1, -1}; /* Used to wake terminate thread and kbhit */ 97 static int isPlaybackStarted = 0; 98 static pthread_mutex_t playbackStartMtx; 99 100 static int32_t g_windows_width = 1280; 101 static int32_t g_windows_height = 720; 102 static char *g_graphic_sub_path; 103 104 const char* GetGraphicSubPath() 105 { 106 return g_graphic_sub_path; 107 } 108 109 int32_t GetGraphicWindowWidth() 110 { 111 return g_windows_width; 112 } 113 114 int32_t GetGraphicWindowHeight() 115 { 116 return g_windows_height; 117 } 118 119 void E2iSendMsg(const char *format, ...) 120 { 121 va_list args; 122 va_start(args, format); 123 vfprintf(stderr, format, args); 124 va_end(args); 125 } 126 127 void E2iStartMsg(void) 128 { 129 flockfile(stderr); 130 } 131 132 void E2iEndMsg(void) 133 { 134 funlockfile(stderr); 135 } 136 137 #endif 115 138 116 139 static int HandleTracks(const Manager_t *ptrManager, const PlaybackCmd_t playbackSwitchCmd, const char *argvBuff)
Note: See TracChangeset
for help on using the changeset viewer.