mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Allow media filenames (URI) with accents (ie. utf8)
This commit is contained in:
+2
-2
@@ -344,7 +344,7 @@ bool MediaImpl::loadMovie(QString filename)
|
||||
}
|
||||
|
||||
// Process URI.
|
||||
gchar* uri = (gchar*) filename.toAscii().constData();
|
||||
gchar* uri = (gchar*) filename.toUtf8().constData();
|
||||
if (!gst_uri_is_valid(uri))
|
||||
{
|
||||
// Try to convert filename to URI.
|
||||
@@ -527,7 +527,7 @@ void MediaImpl::_postRun()
|
||||
gst_message_parse_state_changed(msg, &oldState, &newState,
|
||||
&pendingState);
|
||||
g_print("Pipeline state for movie %s changed from %s to %s:\n",
|
||||
_currentMovie.toAscii().constData(),
|
||||
_currentMovie.toUtf8().constData(),
|
||||
gst_element_state_get_name(oldState),
|
||||
gst_element_state_get_name(newState));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user