summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-13 22:09:13 +0200
committerwm4 <wm4@nowhere>2015-10-13 22:09:13 +0200
commit184426175fe021638dc2ed30eb50418d5a462f6a (patch)
tree02a00f59da09f82555f9c528afed97266defa174
parent1f9c4f19cf05534287d572b2964f10079eec83d9 (diff)
downloadmpv-184426175fe021638dc2ed30eb50418d5a462f6a.tar.bz2
mpv-184426175fe021638dc2ed30eb50418d5a462f6a.tar.xz
player: fix inverted condition
Simple oversight which made it not work at all. How did this ever work, and if it was never tested, then why did it work when fixing this oversight?
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index fff34fad5b..0b19b20b6c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -1611,7 +1611,7 @@ static int mp_property_audio_device(void *ctx, struct m_property *prop,
struct ao_device_list *list = ao_hotplug_get_device_list(cmd->hotplug);
for (int n = 0; n < list->num_devices; n++) {
struct ao_device_desc *dev = &list->devices[n];
- if (dev->name && strcmp(dev->name, mpctx->opts->audio_device)) {
+ if (dev->name && strcmp(dev->name, mpctx->opts->audio_device) == 0) {
*(char **)arg = talloc_strdup(NULL, dev->desc ? dev->desc : "?");
return M_PROPERTY_OK;
}