mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Silenced error log messages when accessing pseudo devices.
This commit is contained in:
parent
18840de217
commit
4431cf57d9
1
HISTORY
1
HISTORY
@ -450,3 +450,4 @@ VDR Plugin 'femon' Revision History
|
|||||||
2012-xx-xx: Version 1.7.17
|
2012-xx-xx: Version 1.7.17
|
||||||
|
|
||||||
- Added the dynamite compatibility patch (Thanks to Lars Hanisch).
|
- Added the dynamite compatibility patch (Thanks to Lars Hanisch).
|
||||||
|
- Silenced error log messages when accessing pseudo devices.
|
||||||
|
13
femonosd.c
13
femonosd.c
@ -396,7 +396,6 @@ void cFemonOsd::DrawInfoWindow(void)
|
|||||||
if (m_Osd && channel) {
|
if (m_Osd && channel) {
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack();
|
eTrackType track = cDevice::PrimaryDevice()->GetCurrentAudioTrack();
|
||||||
cDvbTransponderParameters dtp(channel->Parameters());
|
|
||||||
|
|
||||||
switch (m_DisplayMode) {
|
switch (m_DisplayMode) {
|
||||||
case eFemonModeTransponder:
|
case eFemonModeTransponder:
|
||||||
@ -420,7 +419,8 @@ void cFemonOsd::DrawInfoWindow(void)
|
|||||||
OSDDRAWINFOLEFT( trVDR("CA"), *getCAids(channel));
|
OSDDRAWINFOLEFT( trVDR("CA"), *getCAids(channel));
|
||||||
offset += OSDROWHEIGHT;
|
offset += OSDROWHEIGHT;
|
||||||
switch (channel->Source() & cSource::st_Mask) {
|
switch (channel->Source() & cSource::st_Mask) {
|
||||||
case cSource::stSat:
|
case cSource::stSat: {
|
||||||
|
cDvbTransponderParameters dtp(channel->Parameters());
|
||||||
OSDDRAWINFOLINE(*cString::sprintf("%s #%d - %s", *getSatelliteSystem(dtp.System()), (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName));
|
OSDDRAWINFOLINE(*cString::sprintf("%s #%d - %s", *getSatelliteSystem(dtp.System()), (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName));
|
||||||
offset += OSDROWHEIGHT;
|
offset += OSDROWHEIGHT;
|
||||||
OSDDRAWINFOLEFT( trVDR("Frequency"), *getFrequencyMHz(channel->Frequency()));
|
OSDDRAWINFOLEFT( trVDR("Frequency"), *getFrequencyMHz(channel->Frequency()));
|
||||||
@ -435,9 +435,11 @@ void cFemonOsd::DrawInfoWindow(void)
|
|||||||
OSDDRAWINFOLEFT( trVDR("System"), *getSatelliteSystem(dtp.System()));
|
OSDDRAWINFOLEFT( trVDR("System"), *getSatelliteSystem(dtp.System()));
|
||||||
if (dtp.System())
|
if (dtp.System())
|
||||||
OSDDRAWINFORIGHT(trVDR("RollOff"), *getRollOff(dtp.RollOff()));
|
OSDDRAWINFORIGHT(trVDR("RollOff"), *getRollOff(dtp.RollOff()));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case cSource::stCable:
|
case cSource::stCable: {
|
||||||
|
cDvbTransponderParameters dtp(channel->Parameters());
|
||||||
OSDDRAWINFOLINE(*cString::sprintf("DVB-C #%d - %s", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName));
|
OSDDRAWINFOLINE(*cString::sprintf("DVB-C #%d - %s", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName));
|
||||||
offset += OSDROWHEIGHT;
|
offset += OSDROWHEIGHT;
|
||||||
OSDDRAWINFOLEFT( trVDR("Frequency"), *getFrequencyMHz(channel->Frequency()));
|
OSDDRAWINFOLEFT( trVDR("Frequency"), *getFrequencyMHz(channel->Frequency()));
|
||||||
@ -448,9 +450,11 @@ void cFemonOsd::DrawInfoWindow(void)
|
|||||||
offset += OSDROWHEIGHT;
|
offset += OSDROWHEIGHT;
|
||||||
OSDDRAWINFOLEFT( trVDR("Inversion"), *getInversion(dtp.Inversion()));
|
OSDDRAWINFOLEFT( trVDR("Inversion"), *getInversion(dtp.Inversion()));
|
||||||
OSDDRAWINFORIGHT(trVDR("CoderateH"), *getCoderate(dtp.CoderateH()));
|
OSDDRAWINFORIGHT(trVDR("CoderateH"), *getCoderate(dtp.CoderateH()));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case cSource::stTerr:
|
case cSource::stTerr: {
|
||||||
|
cDvbTransponderParameters dtp(channel->Parameters());
|
||||||
OSDDRAWINFOLINE(*cString::sprintf("%s #%d - %s", *getTerrestrialSystem(dtp.System()), (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName));
|
OSDDRAWINFOLINE(*cString::sprintf("%s #%d - %s", *getTerrestrialSystem(dtp.System()), (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName));
|
||||||
offset += OSDROWHEIGHT;
|
offset += OSDROWHEIGHT;
|
||||||
OSDDRAWINFOLEFT( trVDR("Frequency"), *getFrequencyMHz(channel->Frequency()));
|
OSDDRAWINFOLEFT( trVDR("Frequency"), *getFrequencyMHz(channel->Frequency()));
|
||||||
@ -468,6 +472,7 @@ void cFemonOsd::DrawInfoWindow(void)
|
|||||||
OSDDRAWINFOLEFT( trVDR("System"), *getTerrestrialSystem(dtp.System()));
|
OSDDRAWINFOLEFT( trVDR("System"), *getTerrestrialSystem(dtp.System()));
|
||||||
if (dtp.System())
|
if (dtp.System())
|
||||||
OSDDRAWINFORIGHT(trVDR("PlpId"), *cString::sprintf("%d", dtp.PlpId()));
|
OSDDRAWINFORIGHT(trVDR("PlpId"), *cString::sprintf("%d", dtp.PlpId()));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user