metadata: Properly clean inetref when searching for collection

Also reduce duplicated code.
Remove code handling of title as inetref. The issue if it exists must be resolved elsewhere
metadata: Properly separate TV title/subtitle search from inetref/subtitle search

This prevent likely errors of parsing a title as an inetref, in particular if it contains a ‘:’
metadata: if video type not known, try both movie and television grabber

In case the type couldn’t be identified, it would assume it was only TV
Bump ABI
Fix doxygen comment
CoreContext: Fix IsThisHost

IsThisHost can be called with a hostname, and not just an address as the arguments’ name suggest
metadata: do not use script name for artwork file name

Clear inetref from the script name.
Revert "Subtitles: Avoid changing subtitle state in the decoder thread."

This reverts commit 5a26ce90f5f48495597b451630e3a16a3af5f4ee.

The problem is that calling EnableSubtitles(false) after a seek
unconditionally disables subtitles, instead of clearing stale
subtitles from the screen.
Subtitles: Avoid changing subtitle state in the decoder thread.

This addresses the clearing of stale subtitles after a seek.
Refs #10740.
Make seeks faster for slow decoders / large keyframe distances.

Exact seeking for HD-PVR recordings can be notoriously slow because
the keyframe distance is 128 frames and decoding (even GPU hardware
decoding) is often little faster than real-time.

In most cases, it's a much better user experience to make a less
accurate but much faster seek to the preceding keyframe.

There are two changes:

1. Impose a maximum wall-clock time on the forward frame-by-frame
seeking.  After this maximum time elapses, abort any further frame
seeking.

2. In addition, try to predict whether fully accurate seeking will
complete within a reasonable time, and if after a few frames it seems
hopeless, just don't bother seeking any further.

This approach allows fast decoders and video formats amenable to fast
decoding to continue to have exact seeking.

Fixes #12004.
metadata: do not unnecessarily query the database if there’s no chance that it will yield a result
UPnP: Expose more metadata to UPnP clients

A lot of upnp clients won't use it, but it's there for those that do.

For recordings:
channelID
channelName
callSign
channelNr
seriesTitle
programTitle
episodeNumber*
episodeCount*
recordedStartDateTime
recordedDayOfWeek
seriesID
programID
srsRecordScheduleID

For videos:
seriesTitle
programTitle
episodeNumber*

For music:
playbackCount
lastPlaybackTime

*These likely expect the value to be for the entire series rather than
 per-season since there is no provision for season ID. However since
 it's not that specific we populate them with the episode number
 within a season.
CoreContext: Fix IsThisHost

Wrong parenthesis placement.
CoreContext: Simplify use of IsThisHost, make it work with hostnames
ffmpeg: prevent pts < dts to be passed through to the muxer on stream copy

Fixes Ticket3658

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 27856b2fe9cdbcf48ad996647cb104667b373fa4)
Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
avformat/avidec: allow rounding errors between scale/rate and timebase

Fixes Ticket3670

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 571ab8344a9a2864d22d01af41283cee9328b927)
Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
Do not limit blocksize when reading PCM from aiff.

Fixes ticket #3695.
(cherry picked from commit 763e714442e07f6430b003c8a9f4b62deaa7b3a5)

Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
avcodec/utvideodec: Increase vlc len

Fixes a regression since fb3e380 similar to ticket #2661,
reported by fluffrabbit at aol dot com.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 673716c54b39eba9579a38ad222130e3f9549167)
Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
avcodec/h264: in the absence of recovery points, be more tolerant on accepting plain I frames

Fixes: Ticket3652
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 19c9d1e8e71da04c3ac940206619c0a2d01e5193)
Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>
avcodec/mjpegdec: Improve intel jpeg flip heuristic

Fixes Ticket3698

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0545ef7116db1e87894d978bfa400578652c716d)
Signed-off-by: Jean-Yves Avenard <jyavenard@mythtv.org>