[gst-devel] How do I set uri of the playbin2 (win32), when path contains cyrillic letters?

wl2776 wl2776 at gmail.com
Tue Mar 9 16:51:39 CET 2010



wl2776 wrote:
> 
> For example, my filename is "h:\\some\\path\\with\\cyrillic
> letters\\some_movie.mpg"
> Cyrillic letters are in CP 1251 encoding.
> What should be correct uri to set in playbin2?
> 

I've done it. The code is

gchar
*uri=g_filename_to_uri(g_convert(filename,-1,"UTF-8","CP1251",NULL,NULL,NULL),NULL,NULL);
if(uri){
  g_object_set(G_OBJECT(m_player),"uri",uri,NULL);
  g_free(uri);
}

-- 
View this message in context: http://n4.nabble.com/How-do-I-set-uri-of-the-playbin2-win32-when-path-contains-cyrillic-letters-tp1586003p1586170.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list