Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/recorded.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-09-06 15:50:30 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-09-06 15:50:30 (GMT)
commit36dc9c8efd959746622ede1d08bbf20f3b6f73dc (patch)
tree5f2563705b31bbd295bfb3c3873a69a542901194 /recorded.py
parent011c94f4810186f5464c266897886344d1ca4890 (diff)
handle mesh audio file pixbufs
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@444 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recorded.py')
-rw-r--r--recorded.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/recorded.py b/recorded.py
index fe1323a..3e31ae7 100644
--- a/recorded.py
+++ b/recorded.py
@@ -140,16 +140,23 @@ class Recorded:
def getAudioImagePixbuf( self ):
audioPixbuf = None
- audioFilepath = self.getAudioImageFilepath()
- if (audioFilepath != None):
- audioPixbuf = gtk.gdk.pixbuf_new_from_file(audioFilepath)
+
+ if (self.audioImageFilename == None):
+ audioPixbuf = sef.getThumbPixbuf()
+ else:
+ audioFilepath = self.getAudioImageFilepath()
+ if (audioFilepath != None):
+ audioPixbuf = gtk.gdk.pixbuf_new_from_file(audioFilepath)
return audioPixbuf
def getAudioImageFilepath( self ):
- audioFilepath = os.path.join(self.ca.journalPath, self.audioImageFilename)
- return os.path.abspath(audioFilepath)
+ if (self.audioImageFilename != None):
+ audioFilepath = os.path.join(self.ca.journalPath, self.audioImageFilename)
+ return os.path.abspath(audioFilepath)
+ else:
+ return self.getThumbFilepath()
def getMediaFilepath( self, meshReq ):