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]