Esempio n. 1
0
CZapitAbsSub* CZapitChannel::getChannelSub(int index)
{
    CZapitAbsSub* retval = NULL;

    if ((index < 0) && (currentSub < getSubtitleCount())){
        retval = channelSubs[currentSub];
    } else {
        if ((index >= 0) && (index < (int)getSubtitleCount())) {
            retval = channelSubs[index];
        }
    }
    return retval;
}
Esempio n. 2
0
int CZapitChannel::getChannelSubIndex ( void )
{
	return currentSub < getSubtitleCount() ? currentSub : -1;
}