diff options
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c index 4d6c5dd..eae47e8 100644 --- a/src/audio.c +++ b/src/audio.c @@ -26,6 +26,12 @@ pull_buffer(GstAppSink *sink, gpointer user_data) MumbleProto__UDPTunnel tunnel; static int seq = 0; + /* FIXME: Make this more generic/disable pulling + * the pipeline completely if not connected? + */ + if (ctx->con.conn == NULL) + return GST_FLOW_OK; + buf = gst_app_sink_pull_buffer(ctx->audio.sink); if (++seq <= 2) { |