diff options
author | Christian Morlok <ChristianMorlok@gmail.com> | 2015-11-21 11:49:36 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-11-23 11:56:30 -0800 |
commit | 8e61c2a8d2039a36a7ff974e2c7b6969557d40b3 (patch) | |
tree | 541fbb624943af85e84150a4a1bce0b0e4bb0bde | |
parent | bb953f82d10d3c067062b91a24f2be5294df466f (diff) | |
download | android_system_media-8e61c2a8d2039a36a7ff974e2c7b6969557d40b3.tar.gz android_system_media-8e61c2a8d2039a36a7ff974e2c7b6969557d40b3.tar.bz2 android_system_media-8e61c2a8d2039a36a7ff974e2c7b6969557d40b3.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 e5036923..d24f7799 100644 --- a/audio_route/audio_route.c +++ b/audio_route/audio_route.c @@ -728,6 +728,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; } |