<div dir="ltr">yon can have an # in filename, but in a uri is a link to a position in webpage, so glib read until the character is reached</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-09-02 4:14 GMT+02:00 meeshel <span dir="ltr"><<a href="mailto:meeshel78@hotmail.com" target="_blank">meeshel78@hotmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm using gstreamer v1.2 and meet some issue.<br>
If '#' character is including in file name, g_filename_from_uri return NULL.<br>
g_filename_from_uri is calling in gst_file_src_uri_set_uri() .<br>
<br>
I did googling and find g_filename_from_uri() cannot treat '#'.<br>
So, I changed like below.<br>
<br>
static gboolean<br>
gst_file_src_uri_set_uri (GstURIHandler * handler, const gchar * uri,<br>
GError ** err)<br>
{<br>
......................<br>
#if 0<br>
location = g_filename_from_uri (uri, &hostname, err);<br>
#else<br>
file = g_file_new_for_uri(uri);<br>
location = g_file_get_path(file);<br>
<br>
GST_INFO_OBJECT(src,"Meeshel : uri '%s' ",location);<br>
#endif<br>
.................<br>
}<br>
<br>
But, when I try the file 'pa#pa.mp3', I got a result 'pa'.<br>
<br>
Q1. g_file_get_path() function also cannot handle '#' character?<br>
<br>
Q2. Or, is there something that I missed?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/g-filename-from-uri-error-tp4668502.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/g-filename-from-uri-error-tp4668502.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>