summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-23 19:07:27 +0200
committerwm4 <wm4@nowhere>2013-10-23 19:30:02 +0200
commitd58d4ec93c6a89cea3488689f12f6e7abd0617c9 (patch)
tree0b8114a6989cceeccde41693160a5db411476fe5 /audio/out/ao.c
parent6d44a4dfd1487611dd8ff3da4a6566e64c17106a (diff)
downloadmpv-d58d4ec93c6a89cea3488689f12f6e7abd0617c9.tar.bz2
mpv-d58d4ec93c6a89cea3488689f12f6e7abd0617c9.tar.xz
audio/out: remove useless info struct and redundant fields
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r--audio/out/ao.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index 416bec43f0..c21e58ccf6 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -102,8 +102,8 @@ static bool get_desc(struct m_obj_desc *dst, int index)
return false;
const struct ao_driver *ao = audio_out_drivers[index];
*dst = (struct m_obj_desc) {
- .name = ao->info->short_name,
- .description = ao->info->name,
+ .name = ao->name,
+ .description = ao->description,
.priv_size = ao->priv_size,
.priv_defaults = ao->priv_defaults,
.options = ao->options,
@@ -189,7 +189,7 @@ autoprobe:
for (int i = 0; audio_out_drivers[i]; i++) {
struct ao *ao = ao_create(true, global, input_ctx, encode_lavc_ctx,
samplerate, format, channels,
- (char *)audio_out_drivers[i]->info->short_name, NULL);
+ (char *)audio_out_drivers[i]->name, NULL);
if (ao)
return ao;
}