summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-28 13:19:46 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-28 13:19:46 +0200
commitf715439457f7b25445eca4297309b3e878f16b41 (patch)
treecb27f5cee8b2bde7f918cdcaecc55da737088ff7 /src
parent4af268af035a7e779cf1787185a03e87a5eb982a (diff)
downloadcmumble-f715439457f7b25445eca4297309b3e878f16b41.tar.gz
cmumble-f715439457f7b25445eca4297309b3e878f16b41.tar.bz2
cmumble-f715439457f7b25445eca4297309b3e878f16b41.zip
Remove unnecessary callbacks
Diffstat (limited to 'src')
-rw-r--r--src/cmumble.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index acd1064..657cb2a 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -279,64 +279,6 @@ read_cb(GSocket *socket, GIOCondition condition, gpointer data)
return TRUE;
}
-static gboolean
-bus_call(GstBus *bus, GstMessage *msg, gpointer data)
-{
- struct context *ctx = data;
- GMainLoop *loop = ctx->loop;
-
- switch (GST_MESSAGE_TYPE (msg)) {
-
- case GST_MESSAGE_EOS:
- g_print ("End of stream\n");
- g_main_loop_quit (loop);
- break;
-
- case GST_MESSAGE_ERROR:
- {
- char *debug;
- GError *error;
-
- gst_message_parse_error (msg, &error, &debug);
- g_free (debug);
-
- g_printerr ("Error: %s\n", error->message);
- g_error_free (error);
-
- g_main_loop_quit (loop);
- break;
- }
- default:
- g_print("unhandled message: %d %s\n", GST_MESSAGE_TYPE(msg),
- gst_message_type_get_name(GST_MESSAGE_TYPE(msg)));
- break;
- }
-
- return TRUE;
-}
-
-static void
-app_need_data(GstAppSrc *src, guint length, gpointer user_data)
-{
-#if 0
- struct context *ctx = user_data;
-#endif
-}
-
-static void
-app_enough_data(GstAppSrc *src, gpointer user_data)
-{
-#if 0
- struct context *ctx = user_data;
-#endif
-}
-
-static GstAppSrcCallbacks app_callbacks = {
- app_need_data,
- app_enough_data,
- NULL
-};
-
static int
user_create_playback_pipeline(struct context *ctx, struct user *user)
{
@@ -345,7 +287,6 @@ user_create_playback_pipeline(struct context *ctx, struct user *user)
char *desc = "appsrc name=src ! celtdec ! audioconvert ! autoaudiosink";
pipeline = gst_parse_launch(desc, &error);
-
if (error) {
g_printerr("Failed to create pipeline: %s\n", error->message);
return -1;
@@ -360,7 +301,6 @@ user_create_playback_pipeline(struct context *ctx, struct user *user)
gst_base_src_set_format(GST_BASE_SRC(user->src), GST_FORMAT_TIME);
gst_app_src_set_stream_type(user->src, GST_APP_STREAM_TYPE_STREAM);
- gst_app_src_set_callbacks(user->src, &app_callbacks, ctx, NULL);
gst_element_set_state(pipeline, GST_STATE_PLAYING);