fix segfaults on rtmp streams zapping (2nd attempt)
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-4.3.0r5-dm7080 / 0001-StreamServerControl-no-need-to-setEncoderService-in-.patch
1 From 1e7db652358020443ab0f368711a594989b3c436 Mon Sep 17 00:00:00 2001
2 From: reichi <reichi@opendreambox.org>
3 Date: Mon, 23 May 2016 11:13:51 +0200
4 Subject: [PATCH] StreamServerControl: no need to setEncoderService in
5  _onUpstreamStateChanged (_onSourceStateChanged does that already)
6
7 ---
8  lib/python/Components/StreamServerControl.py | 5 ++---
9  1 file changed, 2 insertions(+), 3 deletions(-)
10
11 diff --git a/usr/lib/enigma2/python/Components/StreamServerControl.py b/usr/lib/enigma2/python/Components/StreamServerControl.py
12 index bb4ff4e..78994df 100644
13 --- a/usr/lib/enigma2/python/Components/StreamServerControl.py
14 +++ b/usr/lib/enigma2/python/Components/StreamServerControl.py
15 @@ -140,10 +140,9 @@ class StreamServerControl(object):
16  
17         def _onUpstreamStateChanged(self, state):
18                 if state > self._streamServer.UPSTREAM_STATE_WAITING and self._currentService and not self._encoderService:
19 -                       Log.i("Upstream required. Aquiring service")
20 -                       self.setEncoderService(self._currentService)
21 +                       Log.i("Upstream running.")
22                 if state <= self._streamServer.UPSTREAM_STATE_WAITING and self._encoderService:
23 -                       Log.i("Upstream superflous. Freeing service")
24 +                       Log.i("Upstream idle.")
25                 for fnc in self.onUpstreamStateChanged:
26                         fnc(state)
27  
28 -- 
29 1.9.1
30