From 1f8330784aec0970e22cbb2aee287a0b65f021af Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 19 Feb 2009 15:58:15 -0300 Subject: [PATCH] bluez: Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close. --- sys/bluez/gstavdtpsink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/bluez/gstavdtpsink.c b/sys/bluez/gstavdtpsink.c index 1d61ea2d70..2e87e0eef5 100644 --- a/sys/bluez/gstavdtpsink.c +++ b/sys/bluez/gstavdtpsink.c @@ -143,8 +143,7 @@ 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; }