Skip to content

Commit

Permalink
[FCC-patch] keep the compiler happy
Browse files Browse the repository at this point in the history
(cherry picked from commit 89c87959b9556f0c0158d0d491b6f048a04cebd7)
(cherry picked from commit 9a2262fe2951ec4711467a710bc1a2547153e954)
  • Loading branch information
Huevos committed Aug 10, 2023
1 parent 445ec7f commit 0edf0c0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion lib/dvb/decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,6 @@ RESULT eTSMPEGDecoder::fccUpdatePids(int fe_id, int vpid, int vtype, int pcrpid)

if ((fe_id != m_fcc_feid) || (vpid != m_fcc_vpid) || (vtype != m_fcc_vtype) || (pcrpid != m_fcc_pcrpid))
{
int cur_fcc_state = m_fcc_state;
fccStop();
if (prepareFCC(fe_id, vpid, vtype, pcrpid))
{
Expand Down
15 changes: 7 additions & 8 deletions lib/dvb/decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,6 @@ class eTSMPEGDecoder: public sigc::trackable, public iTSMPEGDecoder
ePtr<eDVBPCR> m_pcr;
ePtr<eDVBTText> m_text;
int m_vpid, m_vtype, m_apid, m_atype, m_pcrpid, m_textpid;
int m_fcc_fd;
bool m_fcc_enable;
int m_fcc_state;

int m_fcc_feid;
int m_fcc_vpid;
int m_fcc_vtype;
int m_fcc_pcrpid;
enum
{
changeVideo = 1,
Expand All @@ -130,6 +122,13 @@ class eTSMPEGDecoder: public sigc::trackable, public iTSMPEGDecoder
sigc::signal<void(struct videoEvent)> m_video_event;
int m_video_clip_fd;
ePtr<eTimer> m_showSinglePicTimer;
int m_fcc_fd;
bool m_fcc_enable;
int m_fcc_state;
int m_fcc_feid;
int m_fcc_vpid;
int m_fcc_vtype;
int m_fcc_pcrpid;
void finishShowSinglePic(); // called by timer
public:
enum { pidNone = -1 };
Expand Down
2 changes: 1 addition & 1 deletion lib/dvb/dvb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ void eDVBResourceManager::setUsbTuner()
if ((res = sscanf(line.c_str(), "NIM Socket %d:", &fe_idx)) == 1)
continue;

if ((fe_idx != -1) && (line.find("\tName: ") == 0) && (line.find("VTUNER") != -1))
if ((fe_idx != -1) && (line.find("\tName: ") == 0) && (line.find("VTUNER") != std::string::npos))
usbtuner_idx[usbtuner_count++] = fe_idx;
}
in.close();
Expand Down
2 changes: 1 addition & 1 deletion lib/service/servicedvb.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ class eDVBServicePlay: public eDVBServiceBase,
ePtr<eDVBService> m_dvb_service;

ePtr<iTSMPEGDecoder> m_decoder;
int m_decoder_index;
int m_is_primary;
int m_decoder_index;
int m_have_video_pid;
int m_tune_state;
bool m_noaudio;
Expand Down

0 comments on commit 0edf0c0

Please sign in to comment.