mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added support for automatically selecting subtitles when playing old PES recordings made with the subtitles plugin
This commit is contained in:
parent
d2d4dacf5b
commit
a188928e6e
@ -2378,6 +2378,8 @@ Anssi Hannula <anssi.hannula@gmail.com>
|
|||||||
for fixing stopping subtitle display when switching the primary device
|
for fixing stopping subtitle display when switching the primary device
|
||||||
for fixing plugin arguments corruption with glibc 2.11 on x86_64
|
for fixing plugin arguments corruption with glibc 2.11 on x86_64
|
||||||
for setting the audio type of language descriptors to 0x00 in the PAT/PMT generator
|
for setting the audio type of language descriptors to 0x00 in the PAT/PMT generator
|
||||||
|
for adding support for automatically selecting subtitles when playing old PES
|
||||||
|
recordings made with the subtitles plugin
|
||||||
|
|
||||||
Antti Hartikainen <ami+vdr@ah.fi>
|
Antti Hartikainen <ami+vdr@ah.fi>
|
||||||
for updating 'S13E' in 'sources.conf'
|
for updating 'S13E' in 'sources.conf'
|
||||||
|
2
HISTORY
2
HISTORY
@ -6930,3 +6930,5 @@ Video Disk Recorder Revision History
|
|||||||
The REMOTE=RCU option in the 'make' call for VDR is now obsolete.
|
The REMOTE=RCU option in the 'make' call for VDR is now obsolete.
|
||||||
The command line option --rcu is now obsolete. Use -Prcu instead. If you have
|
The command line option --rcu is now obsolete. Use -Prcu instead. If you have
|
||||||
used --rcu with a device path, use -P"rcu -d<device>".
|
used --rcu with a device path, use -P"rcu -d<device>".
|
||||||
|
- Added support for automatically selecting subtitles when playing old PES
|
||||||
|
recordings made with the subtitles plugin (thanks to Anssi Hannula).
|
||||||
|
5
device.c
5
device.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: device.c 2.50 2012/02/25 12:45:53 kls Exp $
|
* $Id: device.c 2.51 2012/02/28 09:25:57 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
@ -1046,7 +1046,8 @@ void cDevice::EnsureSubtitleTrack(void)
|
|||||||
int LanguagePreference = INT_MAX; // higher than the maximum possible value
|
int LanguagePreference = INT_MAX; // higher than the maximum possible value
|
||||||
for (int i = ttSubtitleFirst; i <= ttSubtitleLast; i++) {
|
for (int i = ttSubtitleFirst; i <= ttSubtitleLast; i++) {
|
||||||
const tTrackId *TrackId = GetTrack(eTrackType(i));
|
const tTrackId *TrackId = GetTrack(eTrackType(i));
|
||||||
if (TrackId && TrackId->id && I18nIsPreferredLanguage(Setup.SubtitleLanguages, TrackId->language, LanguagePreference))
|
if (TrackId && TrackId->id && (I18nIsPreferredLanguage(Setup.SubtitleLanguages, TrackId->language, LanguagePreference) ||
|
||||||
|
(i == ttSubtitleFirst + 8 && !*TrackId->language && LanguagePreference == INT_MAX))) // compatibility mode for old subtitles plugin
|
||||||
PreferredTrack = eTrackType(i);
|
PreferredTrack = eTrackType(i);
|
||||||
}
|
}
|
||||||
// Make sure we're set to an available subtitle track:
|
// Make sure we're set to an available subtitle track:
|
||||||
|
Loading…
Reference in New Issue
Block a user