g_filename_from_uri # error

meeshel meeshel78 at hotmail.com
Mon Sep 1 19:14:51 PDT 2014


Hi,

I'm using gstreamer v1.2 and meet some issue.
If '#' character is including in file name, g_filename_from_uri return NULL.
g_filename_from_uri is calling in gst_file_src_uri_set_uri() .

I did googling and find g_filename_from_uri() cannot treat '#'.
So, I changed like below.

static gboolean
gst_file_src_uri_set_uri (GstURIHandler * handler, const gchar * uri,
    GError ** err)
{
         ......................
#if 0
  location = g_filename_from_uri (uri, &hostname, err);
#else
  file = g_file_new_for_uri(uri);
  location = g_file_get_path(file);

  GST_INFO_OBJECT(src,"Meeshel : uri '%s' ",location);
#endif
         .................
}

But, when I try the file 'pa#pa.mp3', I got a result 'pa'.

Q1. g_file_get_path() function also cannot handle '#' character?

Q2. Or, is there something that I missed?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/g-filename-from-uri-error-tp4668502.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list