Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-04-25 04:56:22 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-04-25 04:56:22 (GMT)
commitd9944e95ca8171f01fcfa6eed39ca2c155470a30 (patch)
tree38df979f16d072e936da4d2d20a2a841b69d1a82
parent5004d2cd03b0a75553e59ef740e9b151982a9e31 (diff)
Fix freezing during second audio capture
-rw-r--r--glive.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/glive.py b/glive.py
index bd47cf3..1c8580c 100644
--- a/glive.py
+++ b/glive.py
@@ -50,7 +50,7 @@ PLAYBACK_HEIGHT = 480
OGG_TRAITS = {
0: { 'width': 160, 'height': 120, 'quality': 16 },
1: { 'width': 400, 'height': 300, 'quality': 16 },
- 2: { 'width': 640, 'height': 480, 'quality': 16 } }
+ 2: { 'width': 640, 'height': 480, 'quality': 32 } }
class Glive:
def play(self):
@@ -203,12 +203,7 @@ class Glive:
def startRecordingVideo(self, quality):
logger.debug('startRecordingVideo quality=%s' % quality)
- if True:
- # XXX re-create pipe every time
- # to supress gst glitches during the second invoking
- if self.video_pipe:
- del self.video_pipe
-
+ if not self.video_pipe or quality != self.ogg_quality:
self.video_pipe = gst.parse_launch( \
'%s ' \
'! tee name=tee ' \
@@ -322,7 +317,9 @@ class Glive:
def startRecordingAudio(self):
logger.debug('startRecordingAudio')
- if not self.audio_pipe:
+ # XXX re-create pipe every time
+ # to supress gst glitches during the second invoking
+ if True:
self.audio_pipe = gst.parse_launch( \
'%s ' \
'! queue ' \