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)

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
Fix multiple database bindings issue in Scheduler::ResetDuplicates().

This causesd the duplicate status of programs without programids or
findids to not get updated properly.

Fixes #11224
(cherry picked from commit 6a147ecf09aea985f95d8dcbe4edacc9e18f4a38)
Fix a possible reace condition when a recording finishes.

There was a slight, albeit very unlikely, possibility the scheduler
could run before the recorded table was updated.  This avoids it by
updating the database before notifying the scheduler.

Refs #11224
(cherry picked from commit 729e3d56d3e984d35b4fecd249da7c3e1bdcbfb9)
Reschedule when a recording is undeleted.

Note: an unwitting user could unintentionally bypass this change by
changing the recording group directly from "Deleted" to something
else.  Possibly fix this in the future by moving all releated fixups
into RecordingInfo::ApplyRecordRecGroupChange() instead of having
every caller do them.

Refs #11224
(cherry picked from commit 5e1c14e8c295fb00a3f2e359021be026104863db)
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)
Have EDIT open the metadata editor in the CD ripping screen
(cherry picked from commit 0e281107a8254c77317f9997625b6e3c04097742)
Fix Audio Description and Commentary track filtering when auto-selecting audio track

Fixes #9878
Fixes #3260
Fixes #10963
(cherry picked from commit ee375344e4ac309917fb85f51c9e05ca2b4761c2)
mythmusic: Fix streaming radio not being able to connect to some streams

This fixes a couple of errors with creating the stream GET request header.
If the path part of the the URI is empty the HTTP/1.1 spec says it should be
specified as "/" and not be empty and the Host request-header field should
contain the port if it is non standard.

Fixes #11214

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit fe22adc5c485b8b19969b0e1804a84f652227577)
Subtitles: Add support for forced text subtitle tracks.

Fixes #11242.

If there is a forced text subtitle track (which is possible in e.g. a
.mkv container), and forced subtitles are allowed, then start playback
with that subtitle track selected. Otherwise, use the frontend
settings to decide which captions/subtitles (if any) to enable at
startup.

Background on the mythtv-users mailing list -
http://www.gossamer-threads.com/lists/mythtv/users/532845 .
(cherry picked from commit 64a3cd08752a07ea7928df2d1c713f75a8181f58)
Reduce the amount of "Build background buttonlist" logging.
(cherry picked from commit d1243e25eba64b1e20e6c1ea901eaaa6b3044049)
Don't strip unnecessary white space from title when creating the title list. Fixes #11200
(cherry picked from commit b47711179612a12d8e4f888c426cb5b268893797)
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)
Fix playback of DVDs which feature an empty audio stream
(cherry picked from commit 20baa43b4b0313900dec05c11e6054760123cb9d)
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)
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

[cherry-picked from 06be92206c772509875dbde313769bfae9a2adf7]
Patch to fix UTC issues

Closes #11079

http://code.mythtv.org/trac/ticket/11079
Fix mythfrontend services API /Frontend/PlayRecording call.

We don't need to convert the specified starttime toLocalTime() anymore.

Copies 3eef99e from master.

Fixes #11236 and #11152 I believe.
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]