mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
implement cDemux::GetSource()
This commit is contained in:
@@ -514,3 +514,9 @@ bool cDemux::SetSource(int unit, int source)
|
|||||||
lt_info_c("%s(%d, %d): not implemented yet\n", __func__, unit, source);
|
lt_info_c("%s(%d, %d): not implemented yet\n", __func__, unit, source);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cDemux::GetSource(int unit)
|
||||||
|
{
|
||||||
|
lt_info_c("%s(%d): not implemented yet\n", __func__, unit);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@@ -55,6 +55,7 @@ class cDemux
|
|||||||
void getSTC(int64_t * STC);
|
void getSTC(int64_t * STC);
|
||||||
int getUnit(void);
|
int getUnit(void);
|
||||||
static bool SetSource(int unit, int source);
|
static bool SetSource(int unit, int source);
|
||||||
|
static int GetSource(int unit);
|
||||||
// TD only functions
|
// TD only functions
|
||||||
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
||||||
void removePid(unsigned short Pid); /* needed by cRecord class */
|
void removePid(unsigned short Pid); /* needed by cRecord class */
|
||||||
|
@@ -477,3 +477,9 @@ bool cDemux::SetSource(int unit, int source)
|
|||||||
lt_info_c("%s(%d, %d): not implemented yet\n", __func__, unit, source);
|
lt_info_c("%s(%d, %d): not implemented yet\n", __func__, unit, source);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cDemux::GetSource(int unit)
|
||||||
|
{
|
||||||
|
lt_info_c("%s(%d): not implemented yet\n", __func__, unit);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@@ -55,6 +55,7 @@ class cDemux
|
|||||||
void getSTC(int64_t * STC);
|
void getSTC(int64_t * STC);
|
||||||
int getUnit(void);
|
int getUnit(void);
|
||||||
static bool SetSource(int unit, int source);
|
static bool SetSource(int unit, int source);
|
||||||
|
static int GetSource(int unit);
|
||||||
// TD only functions
|
// TD only functions
|
||||||
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
||||||
void removePid(unsigned short Pid); /* needed by cRecord class */
|
void removePid(unsigned short Pid); /* needed by cRecord class */
|
||||||
|
@@ -595,3 +595,13 @@ bool cDemux::SetSource(int unit, int source)
|
|||||||
dmx_source[unit] = source;
|
dmx_source[unit] = source;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int cDemux::GetSource(int unit)
|
||||||
|
{
|
||||||
|
if (unit >= NUM_DEMUX || unit < 0) {
|
||||||
|
lt_info_c("%s: unit (%d) out of range, NUM_DEMUX %d\n", __func__, unit, NUM_DEMUX);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
lt_info_c("%s(%d) => %d\n", __func__, unit, dmx_source[unit]);
|
||||||
|
return dmx_source[unit];
|
||||||
|
}
|
||||||
|
@@ -57,6 +57,7 @@ class cDemux
|
|||||||
void getSTC(int64_t * STC);
|
void getSTC(int64_t * STC);
|
||||||
int getUnit(void);
|
int getUnit(void);
|
||||||
static bool SetSource(int unit, int source);
|
static bool SetSource(int unit, int source);
|
||||||
|
static int GetSource(int unit);
|
||||||
// TD only functions
|
// TD only functions
|
||||||
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
||||||
void removePid(unsigned short Pid); /* needed by cRecord class */
|
void removePid(unsigned short Pid); /* needed by cRecord class */
|
||||||
|
@@ -63,6 +63,7 @@ class cDemux
|
|||||||
int getUnit(void);
|
int getUnit(void);
|
||||||
/* tripledragon is unlikely to get a second tuner, so stub it out right here */
|
/* tripledragon is unlikely to get a second tuner, so stub it out right here */
|
||||||
static bool SetSource(int /*unit*/, int /*source*/) { return true; };
|
static bool SetSource(int /*unit*/, int /*source*/) { return true; };
|
||||||
|
static int GetSource(int /*unit*/) { return 0; };
|
||||||
// TD only functions
|
// TD only functions
|
||||||
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
int getFD(void) { return fd; }; /* needed by cPlayback class */
|
||||||
void removePid(unsigned short Pid); /* needed by cRecord class */
|
void removePid(unsigned short Pid); /* needed by cRecord class */
|
||||||
|
Reference in New Issue
Block a user