-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new class for external services (service informations from other plug…
…ins: defined for now: radiotext, lcr, femon); radiotext/lcr-hack no longer necessary because of ext. services; new tokens for ext. services; bug fixes (casting, uint64_t, update detection); patches for femon <= 1.7.7
- Loading branch information
mrwastl
committed
Jun 18, 2010
1 parent
4f8e89f
commit d8f8154
Showing
13 changed files
with
654 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- femon.c_orig 2008-01-20 03:20:00.000000000 +0100 | ||
+++ femon.c 2010-06-05 01:30:33.000000000 +0200 | ||
@@ -134,18 +134,23 @@ | ||
|
||
bool cPluginFemon::Service(const char *Id, void *Data) | ||
{ | ||
- if ((strcmp(Id,"FemonService-v1.0") == 0) && Data) { | ||
- FemonService_v1_0 *data = (FemonService_v1_0*)Data; | ||
- int ndx = cDevice::ActualDevice()->CardIndex(); | ||
- data->fe_name = getFrontendName(ndx); | ||
- data->fe_status = getFrontendStatus(ndx); | ||
- data->fe_snr = getSNR(ndx); | ||
- data->fe_signal = getSignal(ndx); | ||
- data->fe_ber = getBER(ndx); | ||
- data->fe_unc = getUNC(ndx); | ||
- data->video_bitrate = cFemonOsd::Instance() ? cFemonOsd::Instance()->GetVideoBitrate() : 0.0; | ||
- data->audio_bitrate = cFemonOsd::Instance() ? cFemonOsd::Instance()->GetAudioBitrate() : 0.0; | ||
- data->dolby_bitrate = cFemonOsd::Instance() ? cFemonOsd::Instance()->GetDolbyBitrate() : 0.0; | ||
+ if (strcmp(Id,"FemonService-v1.0") == 0) { | ||
+ if (Data) { | ||
+ FemonService_v1_0 *data = (FemonService_v1_0*)Data; | ||
+ if (! cDevice::ActualDevice() ) | ||
+ return false; | ||
+ | ||
+ int ndx = cDevice::ActualDevice()->CardIndex(); | ||
+ data->fe_name = getFrontendName(ndx); | ||
+ data->fe_status = getFrontendStatus(ndx); | ||
+ data->fe_snr = getSNR(ndx); | ||
+ data->fe_signal = getSignal(ndx); | ||
+ data->fe_ber = getBER(ndx); | ||
+ data->fe_unc = getUNC(ndx); | ||
+ data->video_bitrate = cFemonOsd::Instance() ? cFemonOsd::Instance()->GetVideoBitrate() : 0.0; | ||
+ data->audio_bitrate = cFemonOsd::Instance() ? cFemonOsd::Instance()->GetAudioBitrate() : 0.0; | ||
+ data->dolby_bitrate = cFemonOsd::Instance() ? cFemonOsd::Instance()->GetDolbyBitrate() : 0.0; | ||
+ } | ||
return true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- femon.c_orig 2010-06-05 01:34:59.000000000 +0200 | ||
+++ femon.c 2010-06-05 01:35:23.000000000 +0200 | ||
@@ -133,6 +133,8 @@ | ||
if (strcmp(Id,"FemonService-v1.0") == 0) { | ||
if (Data) { | ||
FemonService_v1_0 *data = (FemonService_v1_0*)Data; | ||
+ if (! cDevice::ActualDevice() ) | ||
+ return false; | ||
int ndx = cDevice::ActualDevice()->CardIndex(); | ||
data->fe_name = getFrontendName(ndx); | ||
data->fe_status = getFrontendStatus(ndx); |
Oops, something went wrong.