GNOME Bugzilla – Bug 507584
gio: gstgiobasesrc.c does not compile with CVS version of GLib
Last modified: 2008-01-06 16:36:28 UTC
The compile fails in ext/gio with gstgiobasesrc.c:192: warning: implicit declaration of function 'g_memory_input_stream_get_data_size' The function has been removed from the CVS version of GLib, see bug #506374. I'm not sure if the functionality should be requested to be brought back, if it is available through another mechanism, or gst_gio_base_src_get_size should just return FALSE for GMemoryInputStream. I've CC'ed Christian Kellner (original author of GLib's gio/gmemoryinputstream.c) and Alexander Larsson and Matthias Clasen (involved in the API change).
If you need it, we can bring it back.
Of course, gmemoryinputstream is seekable, so you can just use seek/tell to find the same information.
Using seek/tell is probably how we can solve it then... for all GSeekables and not only GMemoryInputStream. I'll care for that later...
Ok, done: 2008-01-06 Sebastian Dröge <slomo@circular-chaos.org> * configure.ac: * ext/gio/gstgiobasesrc.c: (gst_gio_base_src_get_size): * tests/check/pipelines/gio.c: (free_input), (GST_START_TEST): Update to GMemoryInputStream API changes in GLib SVN and require gio-2.0 >= 2.15.1 for this. Fixes bug #507584. We can also report the duration for every GSeekable, not only GFileInputStream and GMemoryInputStream.