diff options
author | Christian Morlok <ChristianMorlok@gmail.com> | 2015-11-21 11:49:36 +0100 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2017-01-02 01:32:44 +0200 |
commit | 4e5d835639a33c57048acb50ecf8e81af861a647 (patch) | |
tree | cbdac1d4929a7671e945360ea027e4192f0773d6 | |
parent | 581eee4f2c75540ea7238e04bb66c12e64e53537 (diff) | |
download | android_system_media-4e5d835639a33c57048acb50ecf8e81af861a647.tar.gz android_system_media-4e5d835639a33c57048acb50ecf8e81af861a647.tar.bz2 android_system_media-4e5d835639a33c57048acb50ecf8e81af861a647.zip |
audio_route: fix unsupported control types in audio_route_update_path
I don't like infinite loops
Change-Id: I57f1f871b572c68cf1d7adef599396a3cbb7fc5d
-rw-r--r-- | audio_route/audio_route.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/audio_route/audio_route.c b/audio_route/audio_route.c index bd5c1124..74912cdd 100644 --- a/audio_route/audio_route.c +++ b/audio_route/audio_route.c @@ -797,6 +797,7 @@ static int audio_route_update_path(struct audio_route *ar, const char *name, boo type = mixer_ctl_get_type(ms->ctl); if (!is_supported_ctl_type(type)) { + i = reverse ? (i - 1) : (i + 1); continue; } |