[mythtv-cmyth] Start development v1.6.11
[mythtv-cmyth] Connect Playback or Monitor

Add 'playback' flag to the initializer of MythConnection and select annoucement type.
- Recording stream control connection use Playback annoucement to prevent backend shutdown.
- Addon control connection use Monitor annoucement to allow backend shutdown.
[mythtv-cmyth] Set start/end time for instant recordings correctly

Add FindCurrentProgram to find the currently active program on a given
channel. When adding a instant recording, set the correct start/end time
from this program.

Thanks to Aubrien for the patch.
[mythtv-cmyth] New EPG structures replacing "cmyth_program"

- New class MythEPGInfo as smart pointer for cmyth_epginfo.
- Memory segments of shared pointers are now handled by librefmem tools.
[mythtv-cmyth] Update DeleteRecording and add DeleteAndForgetRecording
[cmyth] Free chanstr in cmyth_channel_destroy

Commit 9d115f3e3181ae73fedf3165fa2576661d875d7b introduced refmem for
chanstr. Therefore it has to be freed now in cmyth_channel_destroy to
prevent leaking memory.
[mythtv-cmyth] Fix missing free in MythChannel::Number

Commit 9d115f3e3181ae73fedf3165fa2576661d875d7b introduced refmem for
chanstr. Therefore it has to be freed now in cmyth_channel_destroy to
prevent leaking memory.
[mythtv-cmyth] Fix memory leak in MythDatabase::GetChannelGroups

The function cmyth_mysql_get_channelids_in_group writes the list of
channel ids for a channel group into an array of unsigned int.
The allocation is done using ref_alloc.
We have to call ref_release also for a channelCount of 0 because
ref_alloc will also allocate memory when called with size parameter of 0.
[cmyth] Free db settings in cmyth_database_destroy
[cmyth] Remove unnecessary calls to mysql_close in cmyth_db_check_connection

The mysql connection is already closed in cmyth_database_close.
[mythtv-cmyth] Prevent MythFile::Length from returning negative number

The function cmyth_file_length returns negative numbers in case of an
error. Since MythFile::Length returns an unsigned value, this might lead into
unexpected behavior.
[mythtv-cmyth] Return proper number of recordings in FillRecordings

The function PVRClientMythTV::FillRecordings has to return the number of
visible recordings. Seems to be caused by forgotten curly braces.
[cmyth] Fix memory leak in cmyth_conn_connect_path

The call to cmyth_file_create has been moved to the end of the function.
It hasn't been removed at its original place leading to a memory leak.
[cmyth] Fix checking for valid connection in connection.c

This fixes a couple of 'Dereference before null check' issues in
connection.c.
[cmyth] Return consistent errors in connection.c
[cmyth] Return consistent errors in storagegroup.c

- Return consistent ERROR values
- Use NULL instead 0 for null pointers
[cmyth] Use cmyth_mysql_query for DML statement

Use cmyth_mysql_query instead cmyth_mysql_query_result to avoid error messages.
[cmyth] Add cmyth_mysql_keep_livetv_recording

The function disables/enables auto expiration and sets the storage group to
'Default'/'LiveTV' to keep/release a recording.
[cmyth] Add cmyth_proginfo_storagegroup

Returns the storage group for a recording.
[cmyth] Add cmyth_proginfo_generate_pixmap

Use QUERY_GENPIXMAP2 to generate missing pixmaps. (protocol version >=61)