comparison dvdnav.c @ 97:c1dff1899bda src

First patch for personalized dvd viewing. I have not tested it yet.
author jcdutton
date Tue, 17 Sep 2002 11:00:25 +0000
parents 82af243658bd
children c5e47a98c883
comparison
equal deleted inserted replaced
96:2fcb4f228308 97:c1dff1899bda
37 #include <dvdread/nav_read.h> 37 #include <dvdread/nav_read.h>
38 38
39 #include <stdlib.h> 39 #include <stdlib.h>
40 #include <stdio.h> 40 #include <stdio.h>
41 #include <sys/time.h> 41 #include <sys/time.h>
42
43 #include "remap.h"
42 44
43 /* 45 /*
44 * NOTE: 46 * NOTE:
45 * All NLCK_*() function are not mutex locked, this made them reusable in 47 * All NLCK_*() function are not mutex locked, this made them reusable in
46 * a locked context. Take care. 48 * a locked context. Take care.
782 784
783 } 785 }
784 /* Perform the jump if necessary (this is always a 786 /* Perform the jump if necessary (this is always a
785 * VOBU boundary). */ 787 * VOBU boundary). */
786 788
789 if (this->vm->map) {
790 this->vobu.vobu_next = remap_block( this->vm->map,
791 this->vm->state.domain, this->vm->state.TTN_REG,
792 this->vm->state.pgN,
793 this->vobu.vobu_start, this->vobu.vobu_next);
794 }
795
796
787 //result = DVDReadBlocks(this->file, this->vobu.vobu_start + this->vobu.vobu_next, 1, buf); 797 //result = DVDReadBlocks(this->file, this->vobu.vobu_start + this->vobu.vobu_next, 1, buf);
788 result = dvdnav_read_cache_block(this->cache, this->vobu.vobu_start + this->vobu.vobu_next, 1, buf); 798 result = dvdnav_read_cache_block(this->cache, this->vobu.vobu_start + this->vobu.vobu_next, 1, buf);
789 799
790 if(result <= 0) { 800 if(result <= 0) {
791 printerr("Error reading NAV packet."); 801 printerr("Error reading NAV packet.");
998 return this->position_next.still; 1008 return this->position_next.still;
999 } 1009 }
1000 1010
1001 /* 1011 /*
1002 * $Log$ 1012 * $Log$
1013 * Revision 1.36 2002/09/17 11:00:21 jcdutton
1014 * First patch for personalized dvd viewing. I have not tested it yet.
1015 *
1003 * Revision 1.35 2002/09/05 12:55:05 mroi 1016 * Revision 1.35 2002/09/05 12:55:05 mroi
1004 * fix memleaks in dvdnav_open 1017 * fix memleaks in dvdnav_open
1005 * 1018 *
1006 * Revision 1.34 2002/09/03 00:41:48 jcdutton 1019 * Revision 1.34 2002/09/03 00:41:48 jcdutton
1007 * Add a comment so I can tell which version of the CVS a user is using. 1020 * Add a comment so I can tell which version of the CVS a user is using.