From e752e0f82625066419ac1d5df8e3caa26f15b1bb Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Thu, 30 Jan 2014 11:32:05 -0500 Subject: [PATCH] audio: Don't escape filepaths This will actually be done automatically by the gstreamer code. Signed-off-by: Anna Schumaker --- lib/audio.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/audio.cpp b/lib/audio.cpp index afa57ce4..9930dd8e 100644 --- a/lib/audio.cpp +++ b/lib/audio.cpp @@ -83,7 +83,7 @@ static bool change_state(GstState state) static bool load_song(library :: Song &song) { GstState state; - gchar *escaped, *uri; + gchar *uri; std::string filepath = song.library->root_path + "/" + song.track->filepath; if (o_should_pause == true) { @@ -95,10 +95,8 @@ static bool load_song(library :: Song &song) } change_state(GST_STATE_NULL); - escaped = g_markup_escape_text(filepath.c_str(), filepath.size()); - uri = gst_filename_to_uri(escaped, NULL); + uri = gst_filename_to_uri(filepath.c_str(), NULL); g_object_set(G_OBJECT(ocarina_player), "uri", uri, NULL); - g_free(escaped); g_free(uri); get_callbacks()->on_track_loaded(song);