summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-09 15:48:47 +0200
committerwm4 <wm4@nowhere>2017-10-09 15:48:47 +0200
commitb6af3db5680586c209bae53a7eb779ad0d38edc8 (patch)
tree8f1a73aed6223ac70de94ff6e48e51450ac244af /audio
parent622610bad50c48da106b58d458b3598aaf4a493b (diff)
downloadmpv-b6af3db5680586c209bae53a7eb779ad0d38edc8.tar.bz2
mpv-b6af3db5680586c209bae53a7eb779ad0d38edc8.tar.xz
command: drop "audio-out-detected-device" property
Coreaudio stopped setting it a few releases ago (66a958bb4fa). There is not much of a user- or API-visible change, so remove it without deprecation.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao.c7
-rw-r--r--audio/out/ao.h1
-rw-r--r--audio/out/internal.h3
3 files changed, 0 insertions, 11 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index c38c04c6a9..da2dacdcae 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -550,13 +550,6 @@ bool ao_hotplug_check_update(struct ao_hotplug *hp)
return false;
}
-const char *ao_hotplug_get_detected_device(struct ao_hotplug *hp)
-{
- if (!hp || !hp->ao)
- return NULL;
- return hp->ao->detected_device;
-}
-
// The return value is valid until the next call to this API.
struct ao_device_list *ao_hotplug_get_device_list(struct ao_hotplug *hp)
{
diff --git a/audio/out/ao.h b/audio/out/ao.h
index fbbd76fee8..116733fb39 100644
--- a/audio/out/ao.h
+++ b/audio/out/ao.h
@@ -112,7 +112,6 @@ struct ao_hotplug *ao_hotplug_create(struct mpv_global *global,
void *wakeup_ctx);
void ao_hotplug_destroy(struct ao_hotplug *hp);
bool ao_hotplug_check_update(struct ao_hotplug *hp);
-const char *ao_hotplug_get_detected_device(struct ao_hotplug *hp);
struct ao_device_list *ao_hotplug_get_device_list(struct ao_hotplug *hp);
void ao_print_devices(struct mpv_global *global, struct mp_log *log);
diff --git a/audio/out/internal.h b/audio/out/internal.h
index 28deefe128..a6fcf7c5f6 100644
--- a/audio/out/internal.h
+++ b/audio/out/internal.h
@@ -61,9 +61,6 @@ struct ao {
// default device should be used, this is set to NULL.
char *device;
- // Device actually chosen by the AO
- char *detected_device;
-
// Application name to report to the audio API.
char *client_name;