[MPlayer-dev-eng] How to test main function in subreader.c?

Diego Biurrun diego at biurrun.de
Tue Mar 18 13:52:16 CET 2008


On Tue, Mar 18, 2008 at 08:27:16PM +0900, Sunsik Park wrote:
> 
> [...]
> 
> So, I defined DUBPSUBS in subreader.c ,as " #define DUMPSUBS".
> 1. make ( Mplayer source )
> 
> [...] 
> 
> result :
> 
> >     In file included from subreader.c:21:
> >     stream/stream.h:4:20: error: mp_msg.h: No such file or directory
> >     subreader.c: In function 'sub_read_file':
> >     subreader.c:1380: error: 'sub_utf8_prev' undeclared (first use in this function)
> >     subreader.c:1380: error: (Each undeclared identifier is reported only once
> >     subreader.c:1380: error: for each function it appears in.)
> >     subreader.c: In function 'main':
> >     subreader.c:2364: error: too few arguments to function 'sub_read_file'
> >
> Two ways was failed .

One way fixed.

> How to test  main function in subreader.c ?

Fix the invocation of sub_read_file.  The API was likely changed at some
point but this part was never updated.

> I attached subreader.c ( original source ).

This is completely unnecessary, you can be sure that we have subreader.c
source at hand.

Diego



More information about the MPlayer-dev-eng mailing list