Changeset 44967


Ignore:
Timestamp:
12/08/20 15:17:20 (3 years ago)
Author:
obi
Message:

fix build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/player.h

    r44953 r44967  
    6464extern void      eac3_software_decoder_set(const int32_t val);
    6565extern void       mp3_software_decoder_set(const int32_t val);
    66 #ifdef OEBUILD1
     66#ifdef OEBUILD
    6767extern void       amr_software_decoder_set(const int32_t val);
    6868extern void    vorbis_software_decoder_set(const int32_t val);
     
    7171extern void            rtmp_proto_impl_set(const int32_t val);
    7272extern void        flv2mpeg4_converter_set(const int32_t val);
    73 #ifdef OEBUILD1
     73#ifdef OEBUILD
    7474extern void        sel_program_id_set(const int32_t val);
    7575#endif
     
    9393}
    9494
    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, &param);
    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
     96static int g_pfd[2] = {-1, -1}; /* Used to wake terminate thread and kbhit */
     97static int isPlaybackStarted = 0;
     98static pthread_mutex_t playbackStartMtx;
     99
     100static int32_t g_windows_width = 1280;
     101static int32_t g_windows_height = 720;
     102static char *g_graphic_sub_path;
     103
     104const char* GetGraphicSubPath()
     105{
     106    return g_graphic_sub_path;
     107}
     108
     109int32_t GetGraphicWindowWidth()
     110{
     111    return g_windows_width;
     112}
     113
     114int32_t GetGraphicWindowHeight()
     115{
     116    return g_windows_height;
     117}
     118
     119void 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
     127void E2iStartMsg(void)
     128{
     129    flockfile(stderr);
     130}
     131
     132void E2iEndMsg(void)
     133{
     134    funlockfile(stderr);
     135}
     136
     137#endif
    115138
    116139static int HandleTracks(const Manager_t *ptrManager, const PlaybackCmd_t playbackSwitchCmd, const char *argvBuff)
Note: See TracChangeset for help on using the changeset viewer.