Fix setting of values to Artwork property.

This makes the Artwork property derived from a MutableString rather than
a unicode type, allowing the setting of values to work properly, rather
than merely by chance, and correcting an issue where importMetadata
would not apply a coverart value to Video Library entries.
(cherry picked from commit e4b46f0cdc1a18ee5dca94e29229531d928a6dc1)
MythUI: Fix potential use after free when leaving a web page

It's not safe to delete a QNetworkAccessManager before the QWebPage it is being
used with since any outstanding QNetworkReplys will be deleted, causing
QWebPage to potentially access free memory.

Fixes #11168.
(cherry picked from commit 83e88bc0abe21f54daace479ac921c352710c9de)
Fixes #11061. Speed up TFW recovery after falling behind on writes.

Signed-off-by: Daniel Thor Kristjansson <danielk@cuymedia.net>
Fix immutable methods in Artwork class.

This fixes an issue with several immutable methods in the Artwork class,
inherited from the parent UserString class. As the Artwork class is
modified for use as a property, and not intended to be called directly
for storage of a string, the inherited UserString methods that returned
a new instance using the __class__ attribute would fail. This adds a
__new__ method that detects such uses and forces the call to return a
standard str type instead.
(cherry picked from commit 9f66fa0f9a4d9d759b9fdb44f411a4dc1a0748cb)
Use 'unicode' rather than 'str' for UTF8 compatibility.
(cherry picked from commit 0bc83db48ec08b8df576c6ecbf1049567d34ab7a)
Correct handling of Artwork when database field is set to NULL.
(cherry picked from commit 4646e7f56fc97f62d05d42b5896e8eceb361492e)
Tweak DictData behavior to properly function with Properties.
(cherry picked from commit 662b5e83cfa103fc3aed86c194b2fa2c6b9424d8)
Bump internal bindings versions.
When processing frames from DVD/Blu-ray ringbuffer, menu frames are now buffered as necessary to ensure stutter-free playback.

Refs #11233

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit 62816805dbbce996bd8ee61da3bdfca1bb1bcef9)

Conflicts:

	mythtv/libs/libmythtv/Bluray/bdringbuffer.h
	mythtv/libs/libmythtv/DVD/dvdringbuffer.h
Don't treat unknown text display modes as audio tracks. Fixes
TOGGLE_SUBTITLES not working with DVDs after leaving a menu, although a better fix specifically for this problem may be added later.
(cherry picked from commit 2653de8643929aeaaaae3dd5e2a8aa3b86220c47)
Changed DVD angle handling to be 1-based throughout (as they are on DVDs). This also affects the SWITCHTOANGLE action via the Services API.

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit 3e01436a867332ae2aaa24b89b1c5b8ec35480e0)
Fix Audio Description and Commentary track filtering when auto-selecting audio track

Fixes #9878
Fixes #3260
Fixes #10963
(cherry picked from commit ee375344e4ac309917fb85f51c9e05ca2b4761c2)
A RecordingRule is owned by it's RecordingInfo and should not be free'd elsewhere.
Treat POLLHUP as EOF not an error, fixes IVTV (PVR-) recorders failing. Based on patch from ltskinol@gmail.com Fixes #10732
(cherry picked from commit 3d13d795b2ae4a66f4bd3e5bdfd4168c66474282)
Fix deletes on Slave backends. Remove references to deleted_set and
initialise dont_expire_set properly which conflicted with 'deleted'
recgroup behaviour since 0.25. Fixes #10704

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit e150a19030a81e3c099eff76b280b886122529b1)
Set palette correctly when DVD menu highlight changes to ensure highlights are the right colour/have the correct transparency.

Fixes #11265

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit 5df1322ae0f73566766bcde0c7948292877fd443)

Conflicts:

	mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp
Fix compilation against SDK 10.7 when using Xcode 4.4

[cherry-picked from 31e5b9d22b27c02806d4390ffebc091cb0430bc0]
Fix compilation with clang/clang++ - configure: we can't use CFLAGS for compiling C++ code, especially as CFLAGS would include -std=c99 which makes no sense for C++ - util-osx-cocoa.mm was compiled as a C++ file, not an objective-C++ file, gcc was forgiving about the error, clang++ isn't

Conflicts:
	mythtv/configure

[cherry-picked from c3544ed053e91ba98b79fabc0620a8f6d3ee4504]
Fix AirTunes so it works with iTunes 11

iTunes used to only send an AES-128 challenge once, and myth was expecting that the challenge came during the OPTIONS packet.
The challenge is now sent with more packet, including during the ANNOUNCE one.
So we move the handling of the challenge so it will work no matter which packet it comes with.

Tested with iTunes 11, iTunes 10 and iOS 6.01

Conflicts:
	mythtv/libs/libmythtv/AirPlay/mythraopconnection.cpp

[adapted from 06be92206c772509875dbde313769bfae9a2adf7]
Fix cross-compilation on mac.

Depending on the version of Qt you are using QMAKE_OBJECTIVE_CXXFLAGS may be ignored and QMAKE_OBJECTIVE_CFLAGS is used instead.
So define both.

[cherry-picked from 75e47c5989248aebe5c0d2b41b11c6465b2b4ebc]