diff options
author | erikb <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) |
commit | 4f0e2e3f80442f3697ebad8cc3a55a844b81015c (patch) | |
tree | e8c5cbbbfb05226403746e35f45f5d079dde7267 /gplay.py | |
parent | 713999337f755484a3231f6830bb24e85d4e1ab0 (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.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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() |