[DVDnav-discuss] r1207 - trunk/libdvdnav/src/vm/vm.c
erik
subversion at mplayerhq.hu
Sat Jul 31 01:34:13 CEST 2010
Author: erik
Date: Sat Jul 31 01:34:13 2010
New Revision: 1207
Log:
Make sure part is initialized
part can be left untouched by vm_get_current_title. Having it be
uninitialized and assigned to PTTN_REG would likely be a bad idea.
Modified:
trunk/libdvdnav/src/vm/vm.c
Modified: trunk/libdvdnav/src/vm/vm.c
==============================================================================
--- trunk/libdvdnav/src/vm/vm.c Sat Jul 31 01:34:11 2010 (r1206)
+++ trunk/libdvdnav/src/vm/vm.c Sat Jul 31 01:34:13 2010 (r1207)
@@ -1689,7 +1689,7 @@ static int set_PGCN(vm_t *vm, int pgcN)
/* Figure out the correct pgN from the cell and update (vm->state). */
static int set_PGN(vm_t *vm) {
int new_pgN = 0;
- int dummy, part;
+ int dummy, part = 0;
while(new_pgN < (vm->state).pgc->nr_of_programs
&& (vm->state).cellN >= (vm->state).pgc->program_map[new_pgN])
More information about the DVDnav-discuss
mailing list