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:
parent
e9c398f5ef
commit
e752e0f826
|
@ -83,7 +83,7 @@ static bool change_state(GstState state)
|
||||||
static bool load_song(library :: Song &song)
|
static bool load_song(library :: Song &song)
|
||||||
{
|
{
|
||||||
GstState state;
|
GstState state;
|
||||||
gchar *escaped, *uri;
|
gchar *uri;
|
||||||
std::string filepath = song.library->root_path + "/" + song.track->filepath;
|
std::string filepath = song.library->root_path + "/" + song.track->filepath;
|
||||||
|
|
||||||
if (o_should_pause == true) {
|
if (o_should_pause == true) {
|
||||||
|
@ -95,10 +95,8 @@ static bool load_song(library :: Song &song)
|
||||||
}
|
}
|
||||||
|
|
||||||
change_state(GST_STATE_NULL);
|
change_state(GST_STATE_NULL);
|
||||||
escaped = g_markup_escape_text(filepath.c_str(), filepath.size());
|
uri = gst_filename_to_uri(filepath.c_str(), NULL);
|
||||||
uri = gst_filename_to_uri(escaped, NULL);
|
|
||||||
g_object_set(G_OBJECT(ocarina_player), "uri", uri, NULL);
|
g_object_set(G_OBJECT(ocarina_player), "uri", uri, NULL);
|
||||||
g_free(escaped);
|
|
||||||
g_free(uri);
|
g_free(uri);
|
||||||
|
|
||||||
get_callbacks()->on_track_loaded(song);
|
get_callbacks()->on_track_loaded(song);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user