diff options
author | wm4 <wm4@nowhere> | 2013-05-05 19:02:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-09 01:16:04 +0200 |
commit | 2dde1af88d9628fac33fd4f3439afbdaa6eba974 (patch) | |
tree | c63b8de009b1dfd2b80e1a80fd71101d5d8fce7e /stream | |
parent | de8a53bb7001ac0c0c3480743bb1c6bff45bdb56 (diff) | |
download | mpv-2dde1af88d9628fac33fd4f3439afbdaa6eba974.tar.bz2 mpv-2dde1af88d9628fac33fd4f3439afbdaa6eba974.tar.xz |
stream_bluray: make code a bit more obvious
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_bluray.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stream/stream_bluray.c b/stream/stream_bluray.c index 81fd882f86..f0fd37b7b7 100644 --- a/stream/stream_bluray.c +++ b/stream/stream_bluray.c @@ -213,13 +213,13 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg) si = ti->clips[0].pg_streams; break; } - while (count-- > 0) { - if (si->pid == req->id) { - snprintf(req->name, sizeof(req->name), "%.4s", si->lang); + for (int n = 0; n < count; n++) { + BLURAY_STREAM_INFO *i = &si[n]; + if (i->pid == req->id) { + snprintf(req->name, sizeof(req->name), "%.4s", i->lang); bd_free_title_info(ti); return STREAM_OK; } - si++; } } bd_free_title_info(ti); |