enigma2: fixed possible audio selection crash, fixed broken skin isMultiChannel indic...
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-4.3.0r3-dm7080 / 0002-fixed-ServiceInfo-Converter-isMultichannel-check.patch
1 From a34c86817680415fbcea8e17fd9021c13939b326 Mon Sep 17 00:00:00 2001
2 From: ghost <andreas.monzner@dream-property.net>
3 Date: Fri, 13 May 2016 23:58:20 +0200
4 Subject: [PATCH 2/3] fixed ServiceInfo Converter isMultichannel check
5
6 ---
7  usr/lib/enigma2/python/Components/Converter/ServiceInfo.py | 5 ++---
8  1 file changed, 2 insertions(+), 3 deletions(-)
9
10 diff --git a/usr/lib/enigma2/python/Components/Converter/ServiceInfo.py b/usr/lib/enigma2/python/Components/Converter/ServiceInfo.py
11 index 390d1b5..e5ae6d1 100644
12 --- a/usr/lib/enigma2/python/Components/Converter/ServiceInfo.py
13 +++ b/usr/lib/enigma2/python/Components/Converter/ServiceInfo.py
14 @@ -1,5 +1,5 @@
15  from Components.Converter.Converter import Converter
16 -from enigma import iServiceInformation, iPlayableService
17 +from enigma import iServiceInformation, iPlayableService, iAudioType_ENUMS as iAt
18  from Components.Element import cached
19  
20  class ServiceInfo(Converter, object):
21 @@ -79,8 +79,7 @@ class ServiceInfo(Converter, object):
22                                 idx = 0
23                                 while idx < n:
24                                         i = audio.getTrackInfo(idx)
25 -                                       description = i.getDescription();
26 -                                       if "AC3" in description or "DTS" in description:
27 +                                       if i.getType() in (iAt.atAC3, iAt.atDDP, iAt.atDTS, iAt.atDTSHD):
28                                                 return True
29                                         idx += 1
30                         return False
31 -- 
32 1.9.1
33