summaryrefslogtreecommitdiffstats
path: root/stream/stream_bluray.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_bluray.c')
-rw-r--r--stream/stream_bluray.c8
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);