summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuciana Fujii Pontello <luciana@fujii.eti.br>2010-07-13 19:29:29 (GMT)
committerLuciana Fujii Pontello <luciana@fujii.eti.br>2010-07-13 19:29:29 (GMT)
commit13f899b0b61a66dd8cb46b993c2b25221f26dfd1 (patch)
treeb67dcd8e74a229efb7d79206a2a5a3f1425c52cd
parent63eabd8405b4cddd3a6d83266c25817246560f6d (diff)
downloadsltv-13f899b0b61a66dd8cb46b993c2b25221f26dfd1.tar.gz
sltv-13f899b0b61a66dd8cb46b993c2b25221f26dfd1.tar.xz
sltv: Checking if b_source exists before setting PIP
When we removed a source which was selected as a source for picture in picture (B button), sltv would display an error when play was pressed. We now check if the source selected as the pip_source really exists before setting the picture-in-picture.
-rw-r--r--sltv/sltv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sltv/sltv.py b/sltv/sltv.py
index 176021a..acfb794 100644
--- a/sltv/sltv.py
+++ b/sltv/sltv.py
@@ -550,7 +550,7 @@ class Sltv(gobject.GObject):
self._switch_source()
def _switch_pip(self):
- if self.pip_source:
+ if self.pip_source and self.pip_pads.has_key(self.pip_source):
self.pip.set_property("enabled", True)
self.pip.set_property(
"b-active", self.pip_pads[self.pip_source]