audio: Don't escape filepaths

This will actually be done automatically by the gstreamer code.

Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
Anna Schumaker 2014-01-30 11:32:05 -05:00 committed by Anna Schumaker
parent e9c398f5ef
commit e752e0f826
1 changed files with 2 additions and 4 deletions

View File

@ -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);