Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Disconnected backend and suspended client #113

Closed
wants to merge 211 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
4a20071
[cmyth] Added libcmyth from xbmc/lib (September 5. 2012; c4e4b4a6ac1b…
fetzerch Sep 17, 2012
8db0a51
[cmyth] Modifications and bugfixes for libcmyth
fetzerch Sep 17, 2012
3ce2783
[mythtv-cmyth] Initial import of the mythtv-cmyth plugin into the add…
fetzerch Sep 17, 2012
b666dad
[mythtv-cmyth] Fixed win32 build
fetzerch Sep 14, 2012
5f47677
[mythtv-cmyth] Fixed linux build
fetzerch Sep 14, 2012
e7d0dc5
[gitignore] Added ipch and libs
fetzerch Sep 14, 2012
b8e06fe
[mythtv-cmyth] Fixed compiler warnings
fetzerch Sep 15, 2012
b978423
[mythtv-cmyth] Filter recordings in special storagegroups (Deleted, L…
fetzerch Sep 17, 2012
274e42c
[cmyth] Fixed SET_BOOKMARK parameters with protocol version 66
fetzerch Sep 20, 2012
1a2e1c3
[cmyth] Disabled the event tracing functions
fetzerch Sep 20, 2012
82b4981
[cmyth] Added support for 64bit integer mysql parameters
fetzerch Sep 20, 2012
7f0a8d2
[cmyth] Fixed 64bit conversion in cmyth_get_bookmark_mark and cmyth_g…
fetzerch Sep 20, 2012
d86d6ae
[mythtv-cmyth] Adapted bookmark function pointers in libcmyth.h
fetzerch Sep 20, 2012
e716096
[mythtv-cmyth] Added bookmark support to cppmyth
fetzerch Sep 20, 2012
ea48c4a
[mythtv-cmyth] Added 'last played position' support
fetzerch Sep 20, 2012
1d013a4
[mythtv-cmyth] Group recordings just like mythtv does and get rid of …
mzanetti Sep 17, 2012
09a804a
[mythtv-cmyth] Separate title from subtitle by ' - ' instead of '::'
mzanetti Sep 20, 2012
172e89e
Merge remote-tracking branch 'upstream/master'
fetzerch Sep 20, 2012
d0ca1d4
[mythtv-cmyth] Added resource files to project, added changlog.xml an…
fetzerch Sep 22, 2012
12361a6
[mythtv-cmyth] Added setting to enable / disable Live TV support
fetzerch Sep 22, 2012
d6034a5
Merge remote-tracking branch 'upstream/master'
fetzerch Sep 22, 2012
350bd03
[mythtv-cmyth] Set setting to enable / disable Live TV support to tru…
fetzerch Sep 22, 2012
088e067
[cmyth] Added mysqlclient.lib (fixes win32 build)
fetzerch Sep 22, 2012
869f8dd
Merge remote-tracking branch 'upstream/master'
fetzerch Sep 23, 2012
c3de7d3
Merge remote-tracking branch 'upstream/master'
fetzerch Sep 24, 2012
a065ec7
[cmyth] Cleanup: unified parameter name sgToGetFrom to storage_group
janbar Sep 25, 2012
7cbd69a
[cmyth] Switched to int64_t instead of long long in file.c: cmyth_fil…
janbar Sep 25, 2012
cf8d018
[cmyth] Fixed some warnings
janbar Sep 25, 2012
6a4d4a1
[mythtv-cmyth] Renamed back libcmyth function pointer names from came…
fetzerch Sep 27, 2012
1bf0dc7
[cmyth] Changed cmyth_proginfo_rec_status_t enum to match libcmyth.h
fetzerch Sep 28, 2012
f75798d
[cmyth] Win32: Build a static library (instead of a dynamic one)
fetzerch Sep 28, 2012
f13c791
[mythtv-cmyth] Link libcmyth statically
fetzerch Sep 28, 2012
d439e00
[cmyth] Improved comment in cmyth_file_read
janbar Sep 28, 2012
57f1261
[cmyth] Check if file transfer socket is open before reading. Switch …
janbar Sep 28, 2012
769c499
[mythtv-cmyth] Prevent crash on exit.
fetzerch Sep 29, 2012
df5b3da
[mythtv-cmyth] Cleaned up class PVRClientMythTV.
fetzerch Sep 29, 2012
083ff6a
[mythtv-cmyth] Cleaned up Client.cpp/h.
fetzerch Sep 29, 2012
f4629e5
[mythtv-cmyth] Fixed linux build after cleanup of PVRClientMythTV.
fetzerch Sep 29, 2012
3792f9b
[mythtv-cmyth] Added copyright headers to pvrclient-mythtv.h/cpp clie…
fetzerch Sep 30, 2012
5918204
[mythtv-cmyth] Cleaned up cppmyth (MythChannel, MythFile, MythPointer…
fetzerch Sep 30, 2012
aca177d
Merge remote-tracking branch 'upstream/master'
fetzerch Oct 1, 2012
0d8e4d7
Merge remote-tracking branch 'upstream/master'
fetzerch Oct 2, 2012
880bf28
[mythtv-cmyth] Cleaned up cppmyth (MythDatabase, MythStorageGroupFile…
fetzerch Oct 2, 2012
bd50e45
sync interface v1.4.0
opdenkamp Oct 3, 2012
d693390
[mythtv-cmyth] Enable recording image support (icon, thumbnail, fanart)
fetzerch Sep 28, 2012
aaa4298
[mythtv-cmyth] Fixed crash due to incorrect ref_release in MythChanne…
fetzerch Oct 4, 2012
9085000
[mythtv-cmyth] Cleaned up cppmyth (MythConnection, MythEventHandler, …
fetzerch Oct 4, 2012
5eff7e2
[mythtv-cmyth] Replaced SingleLock (from tools.h) by PLATFORM::CLockO…
fetzerch Oct 4, 2012
54cc7ed
[mythtv-cmyth] Fixed crash when timer was deleted by mythweb (timer w…
fetzerch Oct 7, 2012
ff39802
[mythtv-cmyth] Reworked FileOps class for image caching.
fetzerch Oct 4, 2012
5d47fa7
[mythtv-cmyth] Removed unused leftovers: pthreadVC2.dll, pthreadVC2d.dll
fetzerch Oct 7, 2012
262dd30
[mythtv-cmyth] Removed RecordingRules UI
fetzerch Oct 7, 2012
35f11a0
[mythtv-cmyth] Switched to Transifex localization platform
fetzerch Oct 7, 2012
b00a1b4
[mythtv-cmyth] Added changelog to vcxproj.
fetzerch Oct 7, 2012
43ee08b
[mythtv-cmyth] Version 0.3.0
fetzerch Oct 7, 2012
6a57d59
[cmyth] Added IPv6 address support to cmyth_proginfo_parse_url.
janbar Oct 8, 2012
8e56b04
[cmyth] Use atomic increment and decrement on x86 64bit platforms.
janbar Oct 8, 2012
d67584a
[cmyth] Reenable warning when atomic decrement is not available.
janbar Oct 8, 2012
40bd53b
[cmyth] Manage program breaks
janbar Oct 8, 2012
b0ab1f9
[cmyth] Fixed error message in cmyth_rcv_proginfo (socket.c).
janbar Oct 8, 2012
ea6cb33
[cmyth] Less verbose logging in cmyth_livetv_chain_read (livetv.c).
janbar Oct 8, 2012
bf69660
[cmyth] Less verbose logging in cmyth_datetime_to_string (timestamp.c).
janbar Oct 8, 2012
191e684
[mythtv-cmyth] Use StrUID as MythProgramInfo's ID (based on MythTV's …
janbar Oct 8, 2012
df465cd
[mythtv-cmyth] Manage program breaks
janbar Oct 8, 2012
2e793c1
[mythtv-cmyth] Set channel switch delay to 0.
fetzerch Oct 8, 2012
bece3bc
[mythtv-cmyth] Added Suspend/Resume methods to FileOps class.
fetzerch Oct 9, 2012
e8e4a0b
[mythtv-cmyth] Suspend/resume FileOps (image caching) when stream ope…
fetzerch Oct 9, 2012
602764e
[mythtv-cmyth] Replace SetChannel by close and reopening live stream …
janbar Oct 9, 2012
bfd5adb
Merge remote-tracking branch 'upstream/master'
fetzerch Oct 9, 2012
423e792
Merge remote-tracking branch 'upstream/master'
fetzerch Oct 9, 2012
1ef7017
[mythtv-cmyth] Added 1.5.0 API stubs (Timeshift for streams)
fetzerch Oct 9, 2012
52e4fe7
[mythtv-cmyth] Use correct return types in ADDON_Create.
fetzerch Oct 11, 2012
857270d
[mythtv-cmyth] Use iterator::find instead of count for better perform…
fetzerch Oct 11, 2012
37f5393
[mythtv-cmyth] Make sure a recording exists before accessing it.
fetzerch Oct 11, 2012
6525a53
[mythtv-cmyth] Load the recordings from the backend on addon start.
fetzerch Oct 11, 2012
7aa9d7e
[mythtv-cmyth] Make the event handler a member of MythConnection (ins…
fetzerch Oct 11, 2012
a8fbd0f
[cmyth] OSX build / compat: fix noinst_LTLIBRARIES & conditional AM_L…
janbar Oct 11, 2012
87f2a5f
[mythtv-cmyth] OSX build: AM_CONDITIONAL HOST_IS_OSX to specify depen…
janbar Oct 11, 2012
570431f
[mythtv-cmyth] Fixed unused parameter warning in PauseStream.
fetzerch Oct 11, 2012
e443bab
[mythtv-cmyth] Less verbose logging in FileOps (image caching).
fetzerch Oct 11, 2012
353c2e7
[mythtv-cmyth] Less verbose logging in ReadRecordedStream.
janbar Oct 11, 2012
b540ea0
[mythtv-cmyth] Added CloseLiveStreamForReopening method that does not…
janbar Oct 11, 2012
3b43434
Merge remote-tracking branch 'upstream/master'
fetzerch Oct 11, 2012
d8e6192
[mythtv-cmyth] Version 0.4.0
fetzerch Oct 11, 2012
381cab1
[mythtv-cmyth] Enable timeshift / support new feature from API 1.5.0
janbar Oct 13, 2012
a7ac5a8
[project] Provide MYSQL_LIBS and MYSQL_INCLUDES in configure.ac.
fetzerch Oct 13, 2012
6e387ba
[project] Win32: Download mysql client as win32 build dependency.
fetzerch Oct 13, 2012
d68c956
[cmyth] Use MYSQL_LIBS and MYSQL_INCLUDES instead of hardcoded paths.
fetzerch Oct 13, 2012
67b145d
[cmyth] Win32: Use mysql client from build dependencies and don't pro…
fetzerch Oct 13, 2012
bda22fc
[mythtc-cmyth] Win32: Do not link boost::filesystem.
fetzerch Oct 13, 2012
bb3efe2
[mythtv-cmyth] Use typedefs for stl types, replace boost::unordered_m…
fetzerch Oct 13, 2012
d589cba
[mythtv-cmyth] Remove boost::regex.
fetzerch Oct 13, 2012
13d14a8
[project] Win32: Removed boost libs from downloaded build dependencies.
fetzerch Oct 13, 2012
9c4d580
[mythtv-cmyth] Moved program categories into class Categories (implem…
fetzerch Oct 13, 2012
aee27c8
[mythtv-cmyth] Add playback mode for backend event handler to keep qu…
janbar Oct 13, 2012
0e733eb
[cmyth] Win32: Fixed mysql client lib path in project files.
fetzerch Oct 14, 2012
82e8a83
Merge remote-tracking branch 'upstream/master'
fetzerch Oct 17, 2012
40b325a
[cmyth] Prevent crash in cmyth_livetv_chain_update when recorder is n…
janbar Oct 16, 2012
16421df
[cmyth] Changed log message type from ERROR to DEBUG in cmyth_storage…
janbar Oct 16, 2012
f072916
[mythtv-cmyth] Enabled function 'Delete Timer'.
janbar Oct 18, 2012
6edb907
[mythtv-cmyth] Added comment to AddTimer (completion signaled by SCHE…
fetzerch Oct 18, 2012
1d9b29e
[cmyth] Fixed crash when cmyth_proginfo_fill returned null pointer.
janbar Oct 18, 2012
e6a36ad
[cmyth] Unified cmyth_set_bookmark: Make use of rcv_okay("OK") and re…
janbar Oct 19, 2012
126cad6
[mythtv-cmyth] Adapt SetBookmark.
janbar Oct 21, 2012
4143423
Merge remote-tracking branch 'upstream/master'
fetzerch Oct 21, 2012
dbac7c6
[cmyth] Support MythTV 0.26
janbar Oct 18, 2012
5511074
[cmyth] Fixed memory leaks in mythtv_mysql.c (unreleased references)
janbar Oct 20, 2012
d55c365
[cmyth] Fixed MySQL string binding without escape characters in cmyth…
janbar Oct 20, 2012
bf4c461
[cmyth] Fixed memory leaks in mythtv_mysql.c (unreleased references)
janbar Oct 20, 2012
1bc4a1b
[cmyth] Unify mythtv_mysql.c by using cmyth_mysql_query_create().
janbar Oct 20, 2012
020391e
[cmyth] Cleaned up mythtv_mysql.c (DEBUG messages instead ERROR of me…
janbar Oct 20, 2012
50ee59b
[cmyth] Deprecate backdoors and provide new function cmyth_conn_resch…
janbar Oct 21, 2012
c583c23
[mythtv-cmyth] Use cmyth_reschedule_recordings() instead of deprecate…
janbar Oct 21, 2012
5bab71d
[cmyth] Manage backend disconnect: Set connection hang status to 1 wh…
janbar Oct 21, 2012
59fdfab
[mythtv-cmyth] Manage backend disconnect: Fix crash when no recorder …
janbar Oct 21, 2012
7fc708c
[mythtv-cmyth] Manage backend disconnect: Remove retry count limit an…
janbar Oct 21, 2012
f5a7a8b
[mythtv-cmyth] Manage backend disconnect: MythEventHandler.
janbar Oct 21, 2012
81f45c4
[cmyth] Set connection control hang status down only when connection …
janbar Oct 21, 2012
0ca5350
[mythtv-cmyth] Manage backend disconnect: Check status of close strea…
janbar Oct 21, 2012
670060a
[cmyth] Fixed compiler warnings in mythtv_mysql.c.
fetzerch Oct 23, 2012
d93a09b
[cmyth] Fixed DST in cmyth_timestamp_tz_diff.
janbar Oct 24, 2012
9d6b4d3
[cmyth] Don't query guide data for hidden channels (cmyth_mysql_get_g…
fetzerch Oct 27, 2012
a76aa2c
Merge remote-tracking branch 'upstream/master' into pr
fetzerch Oct 28, 2012
5bf75ab
[cmyth] Fixed memory leak on error (connect or create chain add).
janbar Oct 25, 2012
ef193b6
[cmyth] Unify buffer size for Live TV chain.
janbar Oct 27, 2012
afe5e6b
[mythtv-cmyth] Increased Live TV tcp buffer size to 64KB.
janbar Oct 27, 2012
72532ea
[mythtv-cmyth] Increased FileOps tcp buffer size up to 64KB.
janbar Oct 27, 2012
22203f2
[cmyth] Resolve DST issue: Use MYSQL CONVERT_TZ() instead of computed…
janbar Oct 28, 2012
7231067
[cmyth] Fixed cmyth_mysql_get_timers.
fetzerch Nov 1, 2012
d7b9941
[cmyth] Fixed return value in cmyth_mysql_get_timers.
fetzerch Nov 1, 2012
c0edbbd
[cmyth] RESCHEDULE_RECORDINGS changed in protocol 73 (0.26)
fetzerch Nov 1, 2012
889bedc
[mythtv-cmyth] Renamed MythProgramInfo::RecStartTime to RecordingStar…
fetzerch Nov 1, 2012
2f6c1a2
[mythtv-cmyth] Added MythProgramInfo::RecordingEndTime.
fetzerch Nov 1, 2012
8033732
[mythtv-cmyth] MythProgramInfo: Use RecordedStartTime for building th…
fetzerch Nov 1, 2012
f8ceee6
[mythtv-cmyth] Use StartTime instead of RecordingStartTime for record…
fetzerch Nov 1, 2012
e29f22e
[mythtv-cmyth] Use RecordingStart/EndTime instead of Start/EndTime fo…
fetzerch Nov 1, 2012
34eb8fb
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 1, 2012
f1a8dd4
[mythtv-cmyth] Protocol improvement
janbar Nov 1, 2012
b1e71eb
[mythtv-cmyth] Recorder Lock/Unlock
janbar Nov 2, 2012
6551999
[cmyth] Protocol improvement
janbar Nov 1, 2012
b8ac851
[cmyth] Protocol improvement
janbar Nov 1, 2012
f3886fb
[mythtv-cmyth] Improved log message on LiveTVChainUpdate.
janbar Nov 2, 2012
18efc9d
[mythtv-cmyth] Re-enable GetRecordings() during playback
janbar Nov 2, 2012
e73c99d
[mythtv-cmyth] Recording stream Lock/Unlock
janbar Nov 2, 2012
bce4b66
[mythtv-cmyth] fileOps: No need lock control connection during file t…
janbar Nov 4, 2012
2bcb7ab
[mythtv-cmyth] Added locks to Get/SetRecordingPlayCount/Position.
janbar Nov 4, 2012
ebfe6d0
[cmyth] Fix warning in cmyth_chain_read
janbar Nov 4, 2012
605418e
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 5, 2012
2a948a0
[mythtv-cmyth] Added lock to DeleteRecording.
janbar Nov 6, 2012
638115b
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 6, 2012
c583f32
[cmyth] Win32: Moved winsock2.h include in cmyth_local.h.
fetzerch Nov 6, 2012
da07316
[cmyth] Pull across upstream changes for librefmem.
Nov 6, 2012
91205ce
[mythtv-cmyth] Version 0.5.0
fetzerch Nov 10, 2012
d3acb3a
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 10, 2012
2c57fee
[cmyth] Added parameter port to cmyth_database_init.
janbar Nov 10, 2012
c600422
[mythtv-cmyth] Support database connection on a different host than t…
janbar Nov 10, 2012
3ecfb37
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 11, 2012
b55ecae
[mythtv-cmyth] Cleaned up settings names. (MythDB -> DB)
fetzerch Nov 11, 2012
5ee3833
[mythtv-cmyth] Safe lock on GetRecordings and GetRecordingsAmount
janbar Nov 14, 2012
b20e0e9
[mythtv-cmyth] Log compile time PVR API version.
fetzerch Nov 15, 2012
1a58bf1
[cmyth] Added function cmyth_database_get_version.
fetzerch Nov 13, 2012
fe762b2
[mythtv-cmyth] Reworked GetBackendName, GetBackendVersion and GetConn…
fetzerch Nov 13, 2012
1ee5199
[mythtv-cmyth] Reworked error notifications.
fetzerch Nov 17, 2012
e11d0b1
[mythtv-cmyth] Make debug message in OpenLiveStream an error message.
fetzerch Nov 17, 2012
8f69d7b
[cmyth] Added cmyth_mysql_get_recording_markup function.
fetzerch Nov 7, 2012
df6cebc
[cmyth] Added cmyth_mysql_get_recording_framerate function
janbar Nov 14, 2012
c96d1b9
[mythtv-cmyth] Added GetRecordingMarkup and GetRecordingFrameRate to …
fetzerch Nov 15, 2012
0e7df0a
[mythtv-cmyth] Make use of GetRecordingFrameRate to query a recording…
fetzerch Nov 15, 2012
d3ab1e3
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 18, 2012
471486e
[cmyth] Reworked ProgramInfo
janbar Nov 24, 2012
9d115f3
[cmyth] Refactoring & cleanup (recordingrule.c, channel.c, storagegro…
janbar Nov 24, 2012
a5d538f
[mythtv-cmyth] Refactored cmyth, MythTimer->MythRecordingRule
janbar Nov 24, 2012
0ab382f
[cmyth] Win32: Removed leftover project files
fetzerch Nov 24, 2012
6613a4f
[mythtv-cmyth] Fixed compiler warning in MythEventHandler
fetzerch Nov 24, 2012
d6b2794
[cmyth] Fixed compiler warnings.
fetzerch Nov 24, 2012
79a9102
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 25, 2012
4809393
[cmyth] Check if Live TV chain exists before getting filename. Else r…
janbar Nov 25, 2012
54740d7
[cmyth] Cosmetics in recorder.c
janbar Nov 25, 2012
8dbbc2f
[cmyth] IPv6 support: Resolve broken connect_path() when using IPv6.
janbar Nov 24, 2012
3516d0a
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 27, 2012
575f327
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 29, 2012
790efcd
[mythtv-cmyth] Improved timer deletion / creation
janbar Nov 26, 2012
daa200c
Merge remote-tracking branch 'upstream/master'
fetzerch Nov 30, 2012
c6df3ba
Merge remote-tracking branch 'upstream/master'
fetzerch Dec 1, 2012
ea8cff6
Merge remote-tracking branch 'upstream/master'
fetzerch Dec 2, 2012
ddc2b32
[mythtv-cmyth] Added cache for GetArtworkPath and added UpdateStorage…
fetzerch Dec 4, 2012
0c0816e
[mythtv-cmyth] Move IsRecordingVisible() to MythProgramInfo::IsVisible()
janbar Dec 3, 2012
570a42c
[cmyth] Cleanups in event.c and timestamp.c
janbar Dec 4, 2012
bba39a5
[cmyth] cmyth_timestamp_from_string(): const char* instead char*
janbar Dec 4, 2012
808f836
[cmyth] Added cmyth_event_get_message() and cmyth_proginfo_get_from_t…
janbar Dec 4, 2012
fa35f6a
[mythtv-cmyth] Fixed GetRecordingLastPlayedPosition's return value on…
fetzerch Dec 5, 2012
6906288
[mythtv-cmyth] Added HasBookmark to MythProgramInfo
fetzerch Dec 5, 2012
5edac4d
[mythtv-cmyth] Use HasBookmark in GetRecordingLastPlayedPosition
fetzerch Dec 5, 2012
f6fba78
Merge remote-tracking branch 'upstream/master'
fetzerch Dec 7, 2012
c193dfd
[cmyth] Added functions to retreive recording artworks
janbar Dec 7, 2012
9b7e117
[cmyth] Fixed comment typo in cmyth_mysql_get_recording_markup
janbar Dec 7, 2012
5007911
[cmyth] Change cmyth_proginfo_get_from_timeslot (use time_t for recst…
janbar Dec 7, 2012
3e62abb
[mythtv-cmyth] Improve recording updates
janbar Dec 7, 2012
7fab580
[mythtv-cmyth] Improve artwork retreiving
janbar Dec 7, 2012
ad15e66
Merge remote-tracking branch 'upstream/master'
fetzerch Dec 11, 2012
e7424ef
[cmyth] Resolve Live TV lock on file creation error
janbar Dec 10, 2012
5220a39
[cmyth] Resolve issue in rcv_length when connection to backend hangs
janbar Dec 10, 2012
fc98d5d
[mythtv-cmyth] Refactor GetSetting into GetSettingOnHost in MythConne…
fetzerch Dec 11, 2012
e228421
[cmyth] Adding cmyth_mysql_get_setting to query global settings
janbar Dec 10, 2012
c608942
[mythtv-cmyth] Add new MythDatabase::GetSetting to retrieve global se…
janbar Dec 10, 2012
dd9f22f
[mythtv-cmyth] Fix applying default recording rules for new timers
fetzerch Dec 11, 2012
b534500
[cmyth] Reduce retries on connection hang to 3 in rcv_length
janbar Dec 11, 2012
e633f96
[cmyth] Fix issue with Live TV chain lock after e7424effdfe1dd5e584e3…
janbar Dec 11, 2012
f70ab42
Merge remote-tracking branch 'upstream/master'
fetzerch Dec 11, 2012
93cd6f4
[cmyth] Disconnected backend - Client suspended
janbar Dec 13, 2012
be21c11
[mythtv-cmyth] Disconnected backend - Client suspended
janbar Dec 13, 2012
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/pvr.mythtv.cmyth/Makefile.am
Expand Up @@ -30,6 +30,6 @@ libmythtvcmyth_addon_la_SOURCES = src/client.cpp \
src/cppmyth/MythRecorder.cpp \
src/cppmyth/MythStorageGroupFile.cpp \
src/cppmyth/MythSignal.cpp \
src/cppmyth/MythTimer.cpp \
src/cppmyth/MythRecordingRule.cpp \
src/cppmyth/MythTimestamp.cpp

Expand Up @@ -49,3 +49,17 @@ msgstr ""
msgctxt "#30007"
msgid "Allow Live TV to move scheduled shows"
msgstr ""

# Systeminformation labels
msgctxt "#30100"
msgid "Protocol version: %i - Database version: %i"
msgstr ""

# Notifications
msgctxt "#30300"
msgid "Failed to connect to MythTV backend"
msgstr ""

msgctxt "#30301"
msgid "Failed to connect to MythTV database"
msgstr ""
2 changes: 2 additions & 0 deletions addons/pvr.mythtv.cmyth/addon/resources/settings.xml
Expand Up @@ -5,6 +5,8 @@
<setting id="db_user" type="text" label="30002" default="mythtv" />
<setting id="db_password" type="text" label="30003" default="mythtv" />
<setting id="db_name" type="text" label="30004" default="mythconverg" />
<setting id="db_host" type="text" visible="false" />
<setting id="db_port" type="number" visible="false" default="3306" />
<setting id="extradebug" type="bool" label="30005" default="false" />
<setting id="livetv" type="bool" label="30006" default="true" />
<setting id="livetv_priority" type="bool" label="30007" default="false" />
Expand Down
Expand Up @@ -20,9 +20,9 @@
<ClCompile Include="..\..\src\cppmyth\MythFile.cpp" />
<ClCompile Include="..\..\src\cppmyth\MythProgramInfo.cpp" />
<ClCompile Include="..\..\src\cppmyth\MythRecorder.cpp" />
<ClCompile Include="..\..\src\cppmyth\MythRecordingRule.cpp" />
<ClCompile Include="..\..\src\cppmyth\MythStorageGroupFile.cpp" />
<ClCompile Include="..\..\src\cppmyth\MythSignal.cpp" />
<ClCompile Include="..\..\src\cppmyth\MythTimer.cpp" />
<ClCompile Include="..\..\src\cppmyth\MythTimestamp.cpp" />
<ClCompile Include="..\..\src\fileOps.cpp" />
<ClCompile Include="..\..\src\pvrclient-mythtv.cpp" />
Expand All @@ -39,9 +39,9 @@
<ClInclude Include="..\..\src\cppmyth\MythPointer.h" />
<ClInclude Include="..\..\src\cppmyth\MythProgramInfo.h" />
<ClInclude Include="..\..\src\cppmyth\MythRecorder.h" />
<ClInclude Include="..\..\src\cppmyth\MythRecordingRule.h" />
<ClInclude Include="..\..\src\cppmyth\MythStorageGroupFile.h" />
<ClInclude Include="..\..\src\cppmyth\MythSignal.h" />
<ClInclude Include="..\..\src\cppmyth\MythTimer.h" />
<ClInclude Include="..\..\src\cppmyth\MythTimestamp.h" />
<ClInclude Include="..\..\src\fileOps.h" />
<ClInclude Include="..\..\src\pvrclient-mythtv.h" />
Expand Down
Expand Up @@ -28,16 +28,16 @@
<ClCompile Include="..\..\src\cppmyth\MythSignal.cpp">
<Filter>cppmyth</Filter>
</ClCompile>
<ClCompile Include="..\..\src\cppmyth\MythTimer.cpp">
<Filter>cppmyth</Filter>
</ClCompile>
<ClCompile Include="..\..\src\cppmyth\MythTimestamp.cpp">
<Filter>cppmyth</Filter>
</ClCompile>
<ClCompile Include="..\..\src\cppmyth\MythStorageGroupFile.cpp">
<Filter>cppmyth</Filter>
</ClCompile>
<ClCompile Include="..\..\src\categories.cpp" />
<ClCompile Include="..\..\src\cppmyth\MythRecordingRule.cpp">
<Filter>cppmyth</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\client.h" />
Expand Down Expand Up @@ -75,13 +75,13 @@
<ClInclude Include="..\..\src\cppmyth\MythSignal.h">
<Filter>cppmyth</Filter>
</ClInclude>
<ClInclude Include="..\..\src\cppmyth\MythTimer.h">
<Filter>cppmyth</Filter>
</ClInclude>
<ClInclude Include="..\..\src\cppmyth\MythStorageGroupFile.h">
<Filter>cppmyth</Filter>
</ClInclude>
<ClInclude Include="..\..\src\categories.h" />
<ClInclude Include="..\..\src\cppmyth\MythRecordingRule.h">
<Filter>cppmyth</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="cppmyth">
Expand Down
94 changes: 57 additions & 37 deletions addons/pvr.mythtv.cmyth/src/client.cpp
Expand Up @@ -33,11 +33,13 @@ using namespace ADDON;
* Default values are defined inside client.h
* and exported to the other source files.
*/
CStdString g_szHostname = DEFAULT_HOST; ///< The Host name or IP of the mythtv server
CStdString g_szMythHostname = DEFAULT_HOST; ///< The Host name or IP of the mythtv server
int g_iMythPort = DEFAULT_PORT; ///< The mythtv Port (default is 6543)
CStdString g_szMythDBuser = DEFAULT_DB_USER; ///< The mythtv sql username (default is mythtv)
CStdString g_szMythDBpassword = DEFAULT_DB_PASSWORD; ///< The mythtv sql password (default is mythtv)
CStdString g_szMythDBname = DEFAULT_DB_NAME; ///< The mythtv sql database name (default is mythconverg)
CStdString g_szDBUser = DEFAULT_DB_USER; ///< The mythtv sql username (default is mythtv)
CStdString g_szDBPassword = DEFAULT_DB_PASSWORD; ///< The mythtv sql password (default is mythtv)
CStdString g_szDBName = DEFAULT_DB_NAME; ///< The mythtv sql database name (default is mythconverg)
CStdString g_szDBHostname = DEFAULT_HOST; ///< The mythtv sql database host name or IP of the database server (default is same as mythtv backend hostname)
int g_iDBPort = DEFAULT_DB_PORT; ///< The mythtv sql database port (default is 3306)
bool g_bExtraDebug = DEFAULT_EXTRA_DEBUG; ///< Output extensive debug information to the log
bool g_bLiveTV = DEFAULT_LIVETV; ///< LiveTV support (or recordings only)
bool g_bLiveTVPriority = DEFAULT_LIVETV_PRIORITY; ///< MythTV Backend setting to allow live TV to move scheduled shows
Expand Down Expand Up @@ -80,6 +82,8 @@ ADDON_STATUS ADDON_Create(void *hdl, void *props)

XBMC->Log(LOG_DEBUG, "Creating MythTV cmyth PVR-Client");

XBMC->Log(LOG_DEBUG, "Addon compiled with XBMC_PVR_API_VERSION: %s and XBMC_PVR_MIN_API_VERSION: %s", GetPVRAPIVersion(), GetMininumPVRAPIVersion());

XBMC->Log(LOG_DEBUG, "Register handle @ libXBMC_addon...done");

XBMC->Log(LOG_DEBUG, "Checking props...");
Expand Down Expand Up @@ -121,12 +125,12 @@ ADDON_STATUS ADDON_Create(void *hdl, void *props)

/* Read setting "host" from settings.xml */
if (XBMC->GetSetting("host", buffer))
g_szHostname = buffer;
g_szMythHostname = buffer;
else
{
/* If setting is unknown fallback to defaults */
XBMC->Log(LOG_ERROR, "Couldn't get 'host' setting, falling back to '%s' as default", DEFAULT_HOST);
g_szHostname = DEFAULT_HOST;
g_szMythHostname = DEFAULT_HOST;
}
buffer[0] = 0;

Expand All @@ -148,37 +152,58 @@ ADDON_STATUS ADDON_Create(void *hdl, void *props)

/* Read setting "db_username" from settings.xml */
if (XBMC->GetSetting("db_user", buffer))
g_szMythDBuser = buffer;
g_szDBUser = buffer;
else
{
/* If setting is unknown fallback to defaults */
XBMC->Log(LOG_ERROR, "Couldn't get 'db_user' setting, falling back to '%s' as default", DEFAULT_DB_USER);
g_szMythDBuser = DEFAULT_DB_USER;
g_szDBUser = DEFAULT_DB_USER;
}
buffer[0] = 0;

/* Read setting "db_password" from settings.xml */
if (XBMC->GetSetting("db_password", buffer))
g_szMythDBpassword = buffer;
g_szDBPassword = buffer;
else
{
/* If setting is unknown fallback to defaults */
XBMC->Log(LOG_ERROR, "Couldn't get 'db_password' setting, falling back to '%s' as default", DEFAULT_DB_PASSWORD);
g_szMythDBpassword = DEFAULT_DB_PASSWORD;
g_szDBPassword = DEFAULT_DB_PASSWORD;
}
buffer[0] = 0;

/* Read setting "db_name" from settings.xml */
if (XBMC->GetSetting("db_name", buffer))
g_szMythDBname = buffer;
g_szDBName = buffer;
else
{
/* If setting is unknown fallback to defaults */
XBMC->Log(LOG_ERROR, "Couldn't get 'db_name' setting, falling back to '%s' as default", DEFAULT_DB_NAME);
g_szMythDBname = DEFAULT_DB_NAME;
g_szDBName = DEFAULT_DB_NAME;
}
buffer[0] = 0;

/* Read hidden setting "db_host" from settings.xml */
if (XBMC->GetSetting("db_host", buffer))
if (strlen(buffer) > 0)
g_szDBHostname = buffer;
else
g_szDBHostname = g_szMythHostname;
else
{
/* If setting is unknown fallback to defaults */
XBMC->Log(LOG_ERROR, "Couldn't get 'db_host' setting, falling back to '%s' as default", g_szMythHostname.c_str());
g_szDBHostname = g_szMythHostname;
}
buffer[0] = 0;

/* Read hidden setting "db_port" from settings.xml */
if (!XBMC->GetSetting("db_port", &g_iDBPort) || g_iDBPort == 0)
{
/* If setting is unknown fallback to defaults */
g_iDBPort = DEFAULT_DB_PORT;
}

/* Read setting "LiveTV" from settings.xml */
if (!XBMC->GetSetting("livetv", &g_bLiveTV))
{
Expand Down Expand Up @@ -275,10 +300,10 @@ ADDON_STATUS ADDON_SetSetting(const char *settingName, const void *settingValue)
if (str == "host")
{
string tmp_sHostname;
XBMC->Log(LOG_INFO, "Changed Setting 'host' from %s to %s", g_szHostname.c_str(), (const char*)settingValue);
tmp_sHostname = g_szHostname;
g_szHostname = (const char*)settingValue;
if (tmp_sHostname != g_szHostname)
XBMC->Log(LOG_INFO, "Changed Setting 'host' from %s to %s", g_szMythHostname.c_str(), (const char*)settingValue);
tmp_sHostname = g_szMythHostname;
g_szMythHostname = (const char*)settingValue;
if (tmp_sHostname != g_szMythHostname)
return ADDON_STATUS_NEED_RESTART;
}
else if (str == "port")
Expand All @@ -292,29 +317,29 @@ ADDON_STATUS ADDON_SetSetting(const char *settingName, const void *settingValue)
}
else if (str == "db_user")
{
string tmp_sMythDBuser;
XBMC->Log(LOG_INFO, "Changed Setting 'db_user' from %s to %s", g_szMythDBuser.c_str(), (const char*)settingValue);
tmp_sMythDBuser = g_szMythDBuser;
g_szMythDBuser = (const char*)settingValue;
if (tmp_sMythDBuser != g_szMythDBuser)
string tmp_sDBUser;
XBMC->Log(LOG_INFO, "Changed Setting 'db_user' from %s to %s", g_szDBUser.c_str(), (const char*)settingValue);
tmp_sDBUser = g_szDBUser;
g_szDBUser = (const char*)settingValue;
if (tmp_sDBUser != g_szDBUser)
return ADDON_STATUS_NEED_RESTART;
}
else if (str == "db_password")
{
string tmp_sMythDBpassword;
XBMC->Log(LOG_INFO, "Changed Setting 'db_password' from %s to %s", g_szMythDBpassword.c_str(), (const char*)settingValue);
tmp_sMythDBpassword = g_szMythDBpassword;
g_szMythDBpassword = (const char*)settingValue;
if (tmp_sMythDBpassword != g_szMythDBpassword)
string tmp_sDBPassword;
XBMC->Log(LOG_INFO, "Changed Setting 'db_password' from %s to %s", g_szDBPassword.c_str(), (const char*)settingValue);
tmp_sDBPassword = g_szDBPassword;
g_szDBPassword = (const char*)settingValue;
if (tmp_sDBPassword != g_szDBPassword)
return ADDON_STATUS_NEED_RESTART;
}
else if (str == "db_name")
{
string tmp_sMythDBname;
XBMC->Log(LOG_INFO, "Changed Setting 'db_name' from %s to %s", g_szMythDBname.c_str(), (const char*)settingValue);
tmp_sMythDBname = g_szMythDBname;
g_szMythDBname = (const char*)settingValue;
if (tmp_sMythDBname != g_szMythDBname)
string tmp_sDBName;
XBMC->Log(LOG_INFO, "Changed Setting 'db_name' from %s to %s", g_szDBName.c_str(), (const char*)settingValue);
tmp_sDBName = g_szDBName;
g_szDBName = (const char*)settingValue;
if (tmp_sDBName != g_szDBName)
return ADDON_STATUS_NEED_RESTART;
}
else if (str == "extradebug")
Expand Down Expand Up @@ -677,12 +702,7 @@ bool SwitchChannel(const PVR_CHANNEL &channelinfo)
if (g_client == NULL)
return false;

if (g_client->SwitchChannel(channelinfo))
return true;
else
XBMC->QueueNotification(QUEUE_WARNING, "Failed to change channel. No free tuners?");

return false;
return g_client->SwitchChannel(channelinfo);
}

PVR_ERROR SignalStatus(PVR_SIGNAL_STATUS &signalStatus)
Expand Down
11 changes: 7 additions & 4 deletions addons/pvr.mythtv.cmyth/src/client.h
Expand Up @@ -44,6 +44,7 @@ extern "C" {
#define DEFAULT_DB_USER "mythtv"
#define DEFAULT_DB_PASSWORD "mythtv"
#define DEFAULT_DB_NAME "mythconverg"
#define DEFAULT_DB_PORT 3306

/*!
* @brief PVR macros for string exchange
Expand All @@ -61,11 +62,13 @@ extern CStdString g_szUserPath; ///< The Path to the user directory in
extern CStdString g_szClientPath; ///< The Path where this driver is located

/* Client Settings */
extern CStdString g_szHostname; ///< The Host name or IP of the mythtv server
extern CStdString g_szMythHostname; ///< The Host name or IP of the mythtv server
extern int g_iMythPort; ///< The mythtv Port (default is 6543)
extern CStdString g_szMythDBuser; ///< The mythtv sql username (default is mythtv)
extern CStdString g_szMythDBpassword; ///< The mythtv sql password (default is mythtv)
extern CStdString g_szMythDBname; ///< The mythtv sql database name (default is mythconverg)
extern CStdString g_szDBUser; ///< The mythtv sql username (default is mythtv)
extern CStdString g_szDBPassword; ///< The mythtv sql password (default is mythtv)
extern CStdString g_szDBName; ///< The mythtv sql database name (default is mythconverg)
extern CStdString g_szDBHostname; ///< The mythtv sql database host name or IP of the database server
extern int g_iDBPort; ///< The mythtv sql database port (default is 3306)
extern bool g_bExtraDebug; ///< Debug logging
extern bool g_bLiveTV; ///< LiveTV support (or recordings only)
extern bool g_bLiveTVPriority; ///< MythTV Backend setting to allow live TV to move scheduled shows
Expand Down
2 changes: 1 addition & 1 deletion addons/pvr.mythtv.cmyth/src/cppmyth.h
Expand Up @@ -8,5 +8,5 @@
#include "cppmyth/MythProgramInfo.h"
#include "cppmyth/MythRecorder.h"
#include "cppmyth/MythSignal.h"
#include "cppmyth/MythTimer.h"
#include "cppmyth/MythRecordingRule.h"
#include "cppmyth/MythTimestamp.h"
8 changes: 4 additions & 4 deletions addons/pvr.mythtv.cmyth/src/cppmyth/MythChannel.cpp
Expand Up @@ -41,7 +41,7 @@ bool MythChannel::IsNull() const
return *m_channel_t == NULL;
}

int MythChannel::ID()
unsigned long MythChannel::ID()
{
return cmyth_channel_chanid(*m_channel_t);
}
Expand All @@ -54,7 +54,7 @@ CStdString MythChannel::Name()
return retval;
}

int MythChannel::NumberInt()
unsigned long MythChannel::NumberInt()
{
return cmyth_channel_channum(*m_channel_t);
}
Expand Down Expand Up @@ -91,12 +91,12 @@ bool MythChannel::IsRadio() const
return m_radio;
}

int MythChannel::SourceID()
unsigned long MythChannel::SourceID()
{
return cmyth_channel_sourceid(*m_channel_t);
}

int MythChannel::MultiplexID()
unsigned long MythChannel::MultiplexID()
{
return cmyth_channel_multiplex(*m_channel_t);
}
8 changes: 4 additions & 4 deletions addons/pvr.mythtv.cmyth/src/cppmyth/MythChannel.h
Expand Up @@ -37,16 +37,16 @@ class MythChannel

bool IsNull() const;

int ID();
unsigned long ID();
CStdString Name();
int NumberInt();
unsigned long NumberInt();
CStdString Number();
CStdString Callsign();
CStdString Icon();
bool Visible();
bool IsRadio() const;
int SourceID();
int MultiplexID();
unsigned long SourceID();
unsigned long MultiplexID();

private:
boost::shared_ptr<MythPointer<cmyth_channel_t> > m_channel_t;
Expand Down