[vlc-commits] access: bluray: fix init titles signedness
Francois Cartegnie
git at videolan.org
Tue Oct 30 18:12:19 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 13 05:56:25 2018 +0200| [5299564d79b7671912a64dc6004249cb43e10f94] | committer: Francois Cartegnie
access: bluray: fix init titles signedness
(cherry picked from commit 8e2a7a4074536c40368cf582df826387deba0e6d)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5299564d79b7671912a64dc6004249cb43e10f94
---
modules/access/bluray.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index be6f2bccec..c2d482105d 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -269,7 +269,7 @@ static es_out_t *esOutNew(demux_t *p_demux);
static int blurayControl(demux_t *, int, va_list);
static int blurayDemux(demux_t *);
-static void blurayInitTitles(demux_t *p_demux, int menu_titles);
+static void blurayInitTitles(demux_t *p_demux, uint32_t menu_titles);
static int bluraySetTitle(demux_t *p_demux, int i_title);
static void blurayOverlayProc(void *ptr, const BD_OVERLAY * const overlay);
@@ -1651,20 +1651,20 @@ static void blurayUpdateTitleInfo(input_title_t *t, BLURAY_TITLE_INFO *title_inf
}
}
-static void blurayInitTitles(demux_t *p_demux, int menu_titles)
+static void blurayInitTitles(demux_t *p_demux, uint32_t menu_titles)
{
demux_sys_t *p_sys = p_demux->p_sys;
const BLURAY_DISC_INFO *di = bd_get_disc_info(p_sys->bluray);
/* get and set the titles */
- unsigned i_title = menu_titles;
+ uint32_t i_title = menu_titles;
if (!p_sys->b_menu) {
i_title = bd_get_titles(p_sys->bluray, TITLES_RELEVANT, 60);
p_sys->i_longest_title = bd_get_main_title(p_sys->bluray);
}
- for (unsigned int i = 0; i < i_title; i++) {
+ for (uint32_t i = 0; i < i_title; i++) {
input_title_t *t = vlc_input_title_New();
if (!t)
break;
More information about the vlc-commits
mailing list