[the-board] [tb] Quote filenames in both SoundPlayer and SoundRecorder
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [tb] Quote filenames in both SoundPlayer and SoundRecorder
- Date: Thu, 6 Jan 2011 23:03:32 +0000 (UTC)
commit b1c4bdcb9c3f20d8890c49f0e3a0358d0df5b332
Author: Lucas Rocha <lucasr gnome org>
Date: Thu Jan 6 22:20:11 2011 +0000
[tb] Quote filenames in both SoundPlayer and SoundRecorder
Filenames might have spaces.
src/tb/tb-sound-player.c | 2 +-
src/tb/tb-sound-recorder.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tb/tb-sound-player.c b/src/tb/tb-sound-player.c
index 9103576..c026b89 100644
--- a/src/tb/tb-sound-player.c
+++ b/src/tb/tb-sound-player.c
@@ -405,7 +405,7 @@ tb_sound_player_ensure_pipeline (TbSoundPlayer *player)
error = NULL;
- pipeline_desc = g_strdup_printf("playbin uri=file://%s",
+ pipeline_desc = g_strdup_printf("playbin uri=\"file://%s\"",
priv->filename);
priv->pipeline = gst_parse_launch (pipeline_desc, &error);
diff --git a/src/tb/tb-sound-recorder.c b/src/tb/tb-sound-recorder.c
index ec87aea..658af99 100644
--- a/src/tb/tb-sound-recorder.c
+++ b/src/tb/tb-sound-recorder.c
@@ -203,7 +203,7 @@ tb_sound_recorder_ensure_pipeline (TbSoundRecorder *recorder)
pipeline_desc = g_strdup_printf("autoaudiosrc name=source ! "
"audioconvert ! "
"wavenc ! "
- "filesink location=%s",
+ "filesink location=\"%s\"",
priv->filename);
priv->pipeline = gst_parse_launch (pipeline_desc, &error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]