implement cDemux::GetSource()

Origin commit data
------------------
Branch: master
Commit: afdca9c02b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-02-24 (Sun, 24 Feb 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-02-24 16:29:59 +01:00
parent 18bb801db3
commit d6072f4c91
7 changed files with 26 additions and 0 deletions

View File

@@ -595,3 +595,13 @@ bool cDemux::SetSource(int unit, int source)
dmx_source[unit] = source;
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];
}