Mercurial > libdvdnav.hg
diff searching.c @ 3:328eadb3f37e src
Added initial example programs directory and make sure all debug/error output goes to stderr.
author | richwareham |
---|---|
date | Mon, 01 Apr 2002 18:56:28 +0000 |
parents | 3ddf0eaece51 |
children | 66708b4a1b5e |
line wrap: on
line diff
--- a/searching.c Wed Mar 20 23:41:30 2002 +0000 +++ b/searching.c Mon Apr 01 18:56:28 2002 +0000 @@ -125,7 +125,7 @@ } if(fnd_cell_nr <= last_cell_nr) { - printf("Seeking to cell %i from choice of %i to %i\n", + fprintf(stderr,"Seeking to cell %i from choice of %i to %i\n", fnd_cell_nr, first_cell_nr, last_cell_nr); self->seekto_block = target; self->seeking = 1; @@ -148,7 +148,7 @@ - printf("FIXME: Implement seeking to location %u\n", target); + fprintf(stderr,"FIXME: Implement seeking to location %u\n", target); // self->seekto_block=target; // self->seeking = 1; @@ -167,20 +167,20 @@ /* Make sure this is not the first chapter */ if(state->pgN <= 1 ) { - printf("dvdnav: at first chapter. prev chapter failed.\n"); + fprintf(stderr,"dvdnav: at first chapter. prev chapter failed.\n"); return S_ERR; } - printf("dvdnav: previous chapter\n"); + fprintf(stderr,"dvdnav: previous chapter\n"); vm_jump_prog(self->vm, state->pgN - 1); dvdnav_do_post_jump(self); - printf("dvdnav: previous chapter done\n"); + fprintf(stderr,"dvdnav: previous chapter done\n"); return S_OK; } dvdnav_status_t dvdnav_top_pg_search(dvdnav_t *self) { - printf("dvdnav: top chapter. NOP.\n"); + fprintf(stderr,"dvdnav: top chapter. NOP.\n"); return S_OK; } @@ -190,13 +190,13 @@ state = &(self->vm->state); /* Make sure this is not the last chapter */ if(state->pgN >= state->pgc->nr_of_programs) { - printf("dvdnav: at last chapter. next chapter failed.\n"); + fprintf(stderr,"dvdnav: at last chapter. next chapter failed.\n"); return S_ERR; } - printf("dvdnav: next chapter\n"); + fprintf(stderr,"dvdnav: next chapter\n"); vm_jump_prog(self->vm, state->pgN + 1); dvdnav_do_post_jump(self); - printf("dvdnav: next chapter done\n"); + fprintf(stderr,"dvdnav: next chapter done\n"); return S_OK; }