Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gplay.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-01 19:23:17 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-01 19:23:17 (GMT)
commit4f0e2e3f80442f3697ebad8cc3a55a844b81015c (patch)
treee8c5cbbbfb05226403746e35f45f5d079dde7267 /gplay.py
parent713999337f755484a3231f6830bb24e85d4e1ab0 (diff)
ext not recognized correctly in gplay
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@832 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'gplay.py')
-rw-r--r--gplay.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gplay.py b/gplay.py
index c772a1e..eb43d5e 100644
--- a/gplay.py
+++ b/gplay.py
@@ -32,6 +32,8 @@ import gobject
import time
gobject.threads_init()
+import record
+
class Gplay:
def __init__(self, pca):
@@ -78,8 +80,9 @@ class Gplay:
self.getPlayer().set_state(gst.STATE_READY)
self.getPlayer().set_property('uri', location)
- ext = location[len(location):]
- if (ext == "jpg") or (ext == "png"):
+ ext = location[len(location)-3:]
+ record.Record.log.debug("setLocation:"+str(ext))
+ if (ext == "jpg"):
self.pause()