g_filename_from_uri # error

yannick inizan inizan.yannick at gmail.com
Tue Sep 2 01:19:11 PDT 2014


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


2014-09-02 4:14 GMT+02:00 meeshel <meeshel78 at hotmail.com>:

> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140902/03769fed/attachment.html>


More information about the gstreamer-devel mailing list