git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6249914
)
use glib function to escape file uri in mediaplayer
author
Fraxinas
<andreas.frisch@multimedia-labs.de>
Mon, 15 Mar 2010 10:17:48 +0000
(11:17 +0100)
committer
Fraxinas
<andreas.frisch@multimedia-labs.de>
Wed, 31 Mar 2010 13:37:11 +0000
(15:37 +0200)
lib/service/servicemp3.cpp
patch
|
blob
|
history
diff --git
a/lib/service/servicemp3.cpp
b/lib/service/servicemp3.cpp
index 2c84f7befd831318a15dca68f881241dc524512b..154f4868709218e6f3ac6897d51761b94f141526 100644
(file)
--- a/
lib/service/servicemp3.cpp
+++ b/
lib/service/servicemp3.cpp
@@
-302,11
+302,11
@@
eServiceMP3::eServiceMP3(eServiceReference ref)
if ( ret == -1 ) // this is a "REAL" VCD
uri = g_strdup_printf ("vcd://");
else
if ( ret == -1 ) // this is a "REAL" VCD
uri = g_strdup_printf ("vcd://");
else
- uri = g_
strdup_printf ("file://%s", filename
);
+ uri = g_
filename_to_uri(filename, NULL, NULL
);
}
else
}
else
- uri = g_
strdup_printf ("file://%s", filename
);
+ uri = g_
filename_to_uri(filename, NULL, NULL
);
eDebug("eServiceMP3::playbin2 uri=%s", uri);
eDebug("eServiceMP3::playbin2 uri=%s", uri);
@@
-340,9
+340,8
@@
eServiceMP3::eServiceMP3(eServiceReference ref)
struct stat buffer;
if (stat(srt_filename, &buffer) == 0)
{
struct stat buffer;
if (stat(srt_filename, &buffer) == 0)
{
- std::string suburi = "file://" + (std::string)srt_filename;
- eDebug("eServiceMP3::subtitle uri: %s",suburi.c_str());
- g_object_set (G_OBJECT (m_gst_playbin), "suburi", suburi.c_str(), NULL);
+ eDebug("eServiceMP3::subtitle uri: %s", g_filename_to_uri(srt_filename, NULL, NULL));
+ g_object_set (G_OBJECT (m_gst_playbin), "suburi", g_filename_to_uri(srt_filename, NULL, NULL), NULL);
subtitleStream subs;
subs.type = stSRT;
subs.language_code = std::string("und");
subtitleStream subs;
subs.type = stSRT;
subs.language_code = std::string("und");