[mythtv-commits] Ticket #11476: Broadcast (over-the-air) schedule refresh incomplete or absent
MythTV
noreply at mythtv.org
Tue Jun 18 00:34:06 UTC 2013
#11476: Broadcast (over-the-air) schedule refresh incomplete or absent
----------------------------------+-----------------------------
Reporter: deadletterfile@… | Owner: stuarta
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - EIT | Version: Master Head
Severity: medium | Resolution:
Keywords: schedule | Ticket locked: 0
----------------------------------+-----------------------------
Comment (by deadletterfile@…):
Commit 12c443eb1cd22cecd257ea61984fa2dfb31d4992 on the fixes/0.26 branch
is what broke over-the-air broadcast scheduling updates for me.
Specifically the additions to DVBSignalMonitor::UpdateValues(void)
diff --git a/mythtv/libs/libmythtv/dvbsignalmonitor.cpp
b/mythtv/libs/libmythtv/dvbsignalmonitor.cpp
index 1fa010e..75cc94a 100644
--- a/mythtv/libs/libmythtv/dvbsignalmonitor.cpp
+++ b/mythtv/libs/libmythtv/dvbsignalmonitor.cpp
@@ -52,7 +52,8 @@ DVBSignalMonitor::DVBSignalMonitor(int db_cardnum,
DVBChannel* _channel,
rotorPosition (QObject::tr("Rotor Progress"), "pos",
100, true, 0, 100, 0),
streamHandlerStarted(false),
- streamHandler(NULL)
+ streamHandler(NULL),
+ lock_timeout(1000 * 60 * 2 /* 2 minutes */)
{
// These two values should probably come from the database...
int wait = 3000; // timeout when waiting on signal
@@ -208,6 +209,9 @@ DVBChannel *DVBSignalMonitor::GetDVBChannel(void)
*/
void DVBSignalMonitor::UpdateValues(void)
{
+ if (lock_timer.elapsed() > lock_timeout)[[br]]
+ error = "Timed out.";[[br]]
+
if (!running || exit)
return;
I commented out the added lines and this compiled commit worked as hoped,
with over-the-air scheduling updating as expected. I learned in testing
that all station schedules update at a minimum every three hours, and
extend out at least ten hours.
I did a “git checkout 7f71e02467f52d1e3336b8badeee31d3235bb42f“ and “git
status”[[br]]
Author: Chris Pinkham <cpinkham at mythtv.org>[[br]]
Date: Thu Jun 13 22:25:14 2013 -0700
HTTPLiveStream::GetLiveStreamInfo fixups.
The above DVBSignalMonitor::UpdateValues(void) lines were again commented
out and I am testing. I expect success.
On the master branch, I did a “git checkout 7f71e02467” and “git status”
then compiled.
Over-the-air broadcast schedule updating still fails for me. I am using
Fedora 19 for the master branch. /dev/dvb/adapter0 is a HD-5500 card;
adapter<1 2> is a HVR-2250 card. The above compiles and tests were on
Fedora 18 with the same machine.
Below is a cut/paste with date added to a SQL query of my test results on
the master branch:[[br]]
mythbackend version: master [v0.27-pre2-1358-g7ffae0d][[br]]
Mon Jun 17 08:27:23 EDT 2013 [[br]]
613 rows in set (0.01 sec) [[br]]
MariaDB [mythconverg]> select * from program where endtime > '2013-06-16
20:00:00';
Mon Jun 17 08:29:31 EDT 2013[[br]]
708 rows in set
Mon Jun 17 08:30:26 EDT 2013[[br]]
745 rows in set
Mon Jun 17 08:33:04 EDT 2013[[br]]
871 rows in set
Mon Jun 17 08:49:54 EDT 2013[[br]]
952 rows in set
Mon Jun 17 08:53:01 EDT 2013[[br]]
955 rows in set Only WRAL not populated
Mon Jun 17 08:55:19 EDT 2013[[br]]
959 rows in set
Mon Jun 17 09:06:10 EDT 2013[[br]]
1058 rows in set
Mon Jun 17 11:47:09 EDT 2013[[br]]
Mon Jun 17 13:16:26 EDT 2013[[br]]
Mon Jun 17 15:03:19 EDT 2013[[br]]
1058 rows in set
As you can see the station schedules appear to initially update ( I
checked the program guide on mythfrontend), but then no updates over a six
hour period. The code I altered in fixes/0.26 is not in master, and I have
not yet attempted to find where my breakage occurs in the master branch.
I hope you might be able to look at fixes/0.26 based on my analysis. If I
can be of assistance, let me know.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11476#comment:4>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list