libarmbox: some manual code nicenings

Origin commit data
------------------
Branch: master
Commit: cc247d723e
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-07 (Sun, 07 Nov 2021)

Origin message was:
------------------
- libarmbox: some manual code nicenings

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-11-07 00:57:01 +01:00
parent 915ae81f37
commit ea7a941fa6
9 changed files with 514 additions and 619 deletions

View File

@@ -83,18 +83,9 @@ class cPlayback
bool SetVPid(int /*pid*/);
bool SetSubtitlePid(int pid);
bool SetTeletextPid(int pid);
int GetAPid(void)
{
return mAudioStream;
}
int GetVPid(void)
{
return 0;
}
int GetSubtitlePid(void)
{
return mSubtitleStream;
}
int GetAPid(void) { return mAudioStream; }
int GetVPid(void) { return 0; }
int GetSubtitlePid(void) { return mSubtitleStream; }
int GetTeletextPid(void);
bool SetSpeed(int speed);
bool GetSpeed(int &speed) const;
@@ -133,7 +124,9 @@ class netlink_event : public OpenThreads::Thread
int m_player_state;
enum
{
stIdle, stRunning, stStopped,
stIdle,
stRunning,
stStopped,
};
struct streamid
{
@@ -157,10 +150,7 @@ class netlink_event : public OpenThreads::Thread
void Receive();
public:
static netlink_event *getInstance();
uint64_t getDuration()
{
return fileinfo.s64Duration;
};
uint64_t getDuration() { return fileinfo.s64Duration; };
bool Start(cPlayback *player);
bool Stop();
};