mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 19:22:48 +00:00
yeah, test.c works now!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7875 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1eb12974ff
commit
5fe1f32e2b
@ -39,7 +39,7 @@ $(LIBNAME): $(OBJS)
|
||||
$(AR) r $(LIBNAME) $(OBJS)
|
||||
|
||||
test: $(LIBNAME) test.c
|
||||
$(CC) $(CFLAGS) test.c ../mp_msg.c ../linux/shmem.c -o test ./libmpdemux.a ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o ../libmpcodecs/img_format.o ../libao2/afmt.o $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread
|
||||
$(CC) $(CFLAGS) test.c ../mp_msg.c ../linux/shmem.c -o test ./libmpdemux.a ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o ../libmpcodecs/img_format.o ../libao2/afmt.o ../sub_cc.o $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread
|
||||
|
||||
clean:
|
||||
rm -f *.o *.a *~
|
||||
|
@ -29,6 +29,13 @@ int mp_input_check_interrupt(int time){
|
||||
|
||||
int verbose=5; // must be global!
|
||||
|
||||
int stream_cache_size=0;
|
||||
|
||||
// for demux_ogg:
|
||||
void* vo_sub=NULL;
|
||||
int vo_osd_changed(int new_value){return 0;}
|
||||
int subcc_enabled=0;
|
||||
|
||||
//---------------
|
||||
|
||||
extern stream_t* open_stream(char* filename,int vcd_track,int* file_format);
|
||||
@ -54,13 +61,16 @@ int file_format=DEMUXER_TYPE_UNKNOWN;
|
||||
|
||||
printf("success: format: %d data: 0x%X - 0x%X\n",file_format, (int)(stream->start_pos),(int)(stream->end_pos));
|
||||
|
||||
stream_enable_cache(stream,2048*1024,0,0);
|
||||
if(stream_cache_size)
|
||||
stream_enable_cache(stream,stream_cache_size,0,0);
|
||||
|
||||
demuxer=demux_open(stream,file_format,-1,-1,-1);
|
||||
if(!demuxer){
|
||||
printf("Cannot open demuxer\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
if(demuxer->video->sh)
|
||||
video_read_properties(demuxer->video->sh);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user