[Bug 747104] Windows adaptation remarks
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Apr 16 05:26:58 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=747104
--- Comment #14 from Harry <bugzilla.gnome.org at harrym.e4ward.com> ---
I have found out thru examples, that gst_filename_to_uri() requires g_free(),
which is not mentioned in the documentation.
I have previously naively done :
g_object_set (playbin, "uri", gst_filename_to_uri(path, NULL), NULL);
But now found that I need to do in fact :
gchar *uri;
uri = gst_filename_to_uri (path, NULL);
if (uri == NULL)
?????;
g_object_set (playbin, "uri", uri, NULL);
g_free (uri);
I think this is beyond inelegant, even ugly. The ideal would be :
g_object_set (playbin, "filesrc", path, NULL);
So I maintain that a "filesrc" parameter to playbin and similar would be much
more user-friendly.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list