bluez: Make use of g_io_channel_shutdown instead of deprecated g_io_channel_close.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Thu, 19 Feb 2009 18:58:15 +0000 (15:58 -0300)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Jan 2013 14:30:11 +0000 (14:30 +0000)
sys/bluez/gstavdtpsink.c

index 1d61ea2..2e87e0e 100644 (file)
@@ -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;
   }