[farsight2/master] Remove unimplementable fs_stream_preload_recv_codec

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:21:19 PST 2008


---
 docs/libs/farsight-libs-sections.txt |    1 -
 gst-libs/gst/farsight/fs-stream.c    |   29 -----------------------------
 gst-libs/gst/farsight/fs-stream.h    |    7 -------
 python/pyfarsight.defs               |   10 ----------
 4 files changed, 0 insertions(+), 47 deletions(-)

diff --git a/docs/libs/farsight-libs-sections.txt b/docs/libs/farsight-libs-sections.txt
index ea5d955..ce69c41 100644
--- a/docs/libs/farsight-libs-sections.txt
+++ b/docs/libs/farsight-libs-sections.txt
@@ -24,7 +24,6 @@ FsStreamDirection
 fs_stream_add_remote_candidate
 fs_stream_remote_candidates_added
 fs_stream_select_candidate_pair
-fs_stream_preload_recv_codec
 fs_stream_set_remote_codecs
 fs_stream_emit_error
 fs_stream_emit_src_pad_added
diff --git a/gst-libs/gst/farsight/fs-stream.c b/gst-libs/gst/farsight/fs-stream.c
index e7b6dc6..46719c6 100644
--- a/gst-libs/gst/farsight/fs-stream.c
+++ b/gst-libs/gst/farsight/fs-stream.c
@@ -455,35 +455,6 @@ fs_stream_select_candidate_pair (FsStream *stream, gchar *lfoundation,
 }
 
 /**
- * fs_stream_preload_recv_codec:
- * @stream: an #FsStream
- * @codec: The #FsCodec to be preloaded
- * @error: location of a #GError, or %NULL if no error occured
- *
- * This function will preload the codec corresponding to the given codec.
- * This codec must correspond exactly to one of the local-codecs returned by
- * the #FsSession that spawned this #FsStream. Preloading a codec is useful for
- * machines where loading the codec is slow. When preloading, decoding can start
- * as soon as a stream is received.
- *
- * Returns: TRUE of the codec could be preloaded, FALSE if there is an error
- */
-gboolean
-fs_stream_preload_recv_codec (FsStream *stream, FsCodec *codec, GError **error)
-{
-  FsStreamClass *klass = FS_STREAM_GET_CLASS (stream);
-
-  if (klass->preload_recv_codec) {
-    return klass->preload_recv_codec (stream, codec, error);
-  } else {
-    g_set_error (error, FS_ERROR, FS_ERROR_NOT_IMPLEMENTED,
-      "preload_recv_codec not defined in class");
-  }
-
-  return FALSE;
-}
-
-/**
  * fs_stream_set_remote_codecs:
  * @stream: an #FsStream
  * @remote_codecs: a #GList of #FsCodec representing the remote codecs
diff --git a/gst-libs/gst/farsight/fs-stream.h b/gst-libs/gst/farsight/fs-stream.h
index 63045cf..d9deef4 100644
--- a/gst-libs/gst/farsight/fs-stream.h
+++ b/gst-libs/gst/farsight/fs-stream.h
@@ -77,7 +77,6 @@ typedef struct _FsStreamPrivate FsStreamPrivate;
  * @add_remote_candidate: Adds a remote candidate
  * @remote_candidates_added: Tell the stream to start the connectivity checks
  * @select_candidate_pair: Select the candidate pair
- * @preload_recv_codec: Set which codec to prelaod
  * @set_remote_codecs: Sets the list of remote codecs
  *
  * You must override add_remote_candidate in a subclass.
@@ -98,9 +97,6 @@ struct _FsStreamClass
   gboolean (*select_candidate_pair) (FsStream *stream, gchar *lfoundation,
                                      gchar *rfoundation, GError **error);
 
-  gboolean (*preload_recv_codec) (FsStream *stream, FsCodec *codec,
-                                  GError **error);
-
   gboolean (*set_remote_codecs) (FsStream *stream,
                                  GList *remote_codecs, GError **error);
 
@@ -135,9 +131,6 @@ void fs_stream_remote_candidates_added (FsStream *stream);
 gboolean fs_stream_select_candidate_pair (FsStream *stream, gchar *lfoundation,
                                           gchar *rfoundation, GError **error);
 
-gboolean fs_stream_preload_recv_codec (FsStream *stream, FsCodec *codec,
-                                       GError **error);
-
 gboolean fs_stream_set_remote_codecs (FsStream *stream,
                                       GList *remote_codecs, GError **error);
 
diff --git a/python/pyfarsight.defs b/python/pyfarsight.defs
index 22762a9..5a8ec06 100644
--- a/python/pyfarsight.defs
+++ b/python/pyfarsight.defs
@@ -479,16 +479,6 @@
   )
 )
 
-(define-method preload_recv_codec
-  (of-object "FsStream")
-  (c-name "fs_stream_preload_recv_codec")
-  (return-type "gboolean")
-  (parameters
-    '("FsCodec*" "codec")
-    '("GError**" "error")
-  )
-)
-
 (define-method set_remote_codecs
   (of-object "FsStream")
   (c-name "fs_stream_set_remote_codecs")
-- 
1.5.6.5




More information about the farsight-commits mailing list