[gst-devel] [PATCH 4/4] Remove size support for GMemoryInputStreams.

Simon Holm Thøgersen odie at cs.aau.dk
Sun Jan 6 04:24:31 CET 2008


The API of GLib has changed in CVS and no longer provides a function to
get the size of a GMemoryInputStream, see bug #506374. The functionality
might still be possible to provide, see bug #507584 that has been filed
to track the issue.
---
 ext/gio/gstgiobasesrc.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/ext/gio/gstgiobasesrc.c b/ext/gio/gstgiobasesrc.c
index eaf6b95..03237c9 100644
--- a/ext/gio/gstgiobasesrc.c
+++ b/ext/gio/gstgiobasesrc.c
@@ -185,17 +185,6 @@ gst_gio_base_src_get_size (GstBaseSrc * base_src, guint64 * size)
 
       g_clear_error (&err);
     }
-  } else if (G_IS_MEMORY_INPUT_STREAM (src->stream)) {
-    gsize data_size;
-
-    data_size =
-        g_memory_input_stream_get_data_size (G_MEMORY_INPUT_STREAM (src->
-            stream));
-
-    if (data_size != -1) {
-      *size = data_size;
-      return TRUE;
-    }
   }
 
   return FALSE;
-- 
1.5.3.5.576.gfe6193





More information about the gstreamer-devel mailing list