From 15fc39c2964c016ca29800e4637d486ee4af0497 Mon Sep 17 00:00:00 2001 From: Jochen Henneberg Date: Fri, 9 Nov 2018 15:20:09 +0000 Subject: [PATCH] avdtputil: Remove dead code These function are not used at all, using them together with the transport-volume property from avdtpsrc may end up in a binding loop so we better remove the functions. --- sys/bluez/gstavdtputil.c | 16 ---------------- sys/bluez/gstavdtputil.h | 3 --- 2 files changed, 19 deletions(-) diff --git a/sys/bluez/gstavdtputil.c b/sys/bluez/gstavdtputil.c index 8f9f9a0cf3..3e58e1275a 100644 --- a/sys/bluez/gstavdtputil.c +++ b/sys/bluez/gstavdtputil.c @@ -722,22 +722,6 @@ gst_avdtp_connection_get_caps (GstAvdtpConnection * conn) return caps; } -guint -gst_avdtp_connection_get_volume (GstAvdtpConnection * conn) -{ - if (conn->data.is_acquired) - return bluez_media_transport1_get_volume (conn->data.conn); - else - return 127; -} - -void -gst_avdtp_connection_set_volume (GstAvdtpConnection * conn, guint16 volume) -{ - if (conn->data.is_acquired) - bluez_media_transport1_set_volume (conn->data.conn, volume); -} - void gst_avdtp_connection_notify_volume (GstAvdtpConnection * conn, GObject * target, const gchar * property) diff --git a/sys/bluez/gstavdtputil.h b/sys/bluez/gstavdtputil.h index 99394600bf..11deef5d2d 100644 --- a/sys/bluez/gstavdtputil.h +++ b/sys/bluez/gstavdtputil.h @@ -69,9 +69,6 @@ void gst_avdtp_connection_set_device (GstAvdtpConnection * conn, const char *device); void gst_avdtp_connection_set_transport (GstAvdtpConnection * conn, const char *transport); -guint gst_avdtp_connection_get_volume (GstAvdtpConnection * conn); -void gst_avdtp_connection_set_volume (GstAvdtpConnection * conn, - guint16 volume); void gst_avdtp_connection_notify_volume (GstAvdtpConnection * conn, GObject * target, const gchar * property); gboolean gst_avdtp_connection_conf_recv_stream_fd (GstAvdtpConnection * conn);