summaryrefslogtreecommitdiffstats
path: root/audio/gstavdtpsink.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gstavdtpsink.c')
-rw-r--r--audio/gstavdtpsink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/gstavdtpsink.c b/audio/gstavdtpsink.c
index a5ac3bdd..586dfe14 100644
--- a/audio/gstavdtpsink.c
+++ b/audio/gstavdtpsink.c
@@ -144,8 +144,7 @@ static gboolean gst_avdtp_sink_stop(GstBaseSink *basesink)
}
if (self->stream) {
- g_io_channel_flush(self->stream, NULL);
- g_io_channel_close(self->stream);
+ g_io_channel_shutdown(self->stream, TRUE, NULL);
g_io_channel_unref(self->stream);
self->stream = NULL;
}