Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-01-07 19:16:57 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-01-07 19:16:57 (GMT)
commit4706a4975be4e326f6cf999316251ed91a3b10aa (patch)
treef78129b081ccfc8bb824791f56a8f2e49c0fbb02
parentbcc71b5dd2c070270d7b26cbcc0d0125ce0d2be9 (diff)
minor stream cleanupv4
-rw-r--r--utils/play_audio.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/play_audio.py b/utils/play_audio.py
index 26ee031..b3c0728 100644
--- a/utils/play_audio.py
+++ b/utils/play_audio.py
@@ -43,10 +43,9 @@ def play_audio_from_file(file_path, queue=False):
play_audio_from_file.player.set_state(gst.STATE_NULL)
- play_audio_from_file.player = gst.parse_launch ( \
- "filesrc location=%s" \
- " ! oggdemux ! vorbisdec !" \
- "audioconvert ! alsasink" % (file_path,))
+ play_audio_from_file.player = gst.parse_launch (
+ "filesrc location=%s ! decodebin !" \
+ " autoaudiosink" % (file_path,))
if not play_audio_from_file.player:
_logger.warning('unable to play audio file %s' % (file_path))