summaryrefslogtreecommitdiffstats
path: root/audio/gstavdtpsink.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-19 15:58:15 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-02-19 16:23:10 -0300
commit10d6858927cb3db0a06c42f41cdb5f3175082df3 (patch)
tree84b4164449b747d56c0d4b86b205f80744162fc5 /audio/gstavdtpsink.c
parente777c55aa7cd84fe63bcdee16acde8d1a293b928 (diff)
Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close.
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;
}