[streaming] Problem of add tcp function into vlc

Soh Wei Sin wssoh85 at yahoo.com
Wed Dec 24 07:21:25 CET 2008


Hi, all. I'm using ubuntu 7.10 and VLC 0.8.6f

I try to build small function for vlc. However, now I face a big problem to compile the code.

I add small tcp server thread to "libvlc.c" file in function "int
VLC_Create( void )". I put my program at there because I found out that
while VLC initialize, It will execute that function. The server will
receive an IPv6 address from the client  and then try to receive
streaming video from that address. However, I found out this problem
when compile.

the error is shown as:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
make[4]: Entering directory `/home/ims/Desktop/vlc-0.8.6f/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I..   -DSYS_LINUX -I../include
`top_builddir=".." ../vlc-config --cflags vlc pic` -Wsign-compare
-Wall  -pipe -MT libvlc_a-libvlc.o -MD -MP -MF
".deps/libvlc_a-libvlc.Tpo" -c -o libvlc_a-libvlc.o `test -f 'libvlc.c'
|| echo './'`libvlc.c; \
        then mv -f ".deps/libvlc_a-libvlc.Tpo" ".deps/libvlc_a-libvlc.Po"; else rm -f ".deps/libvlc_a-libvlc.Tpo"; exit 1; fi
libvlc.c: In function ‘sthr_do’:
libvlc.c:340: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness
libvlc.c:388: warning: passing argument 1 of ‘__playlist_Create’ from incompatible pointer type
libvlc.c:439:7: warning: "/*" within comment
libvlc.c:455:11: warning: "/*" within comment
libvlc.c:465:5: warning: "/*" within comment
libvlc.c:480:4: warning: "/*" within comment
libvlc.c:514:11: warning: "/*" within comment
libvlc.c:2165: error: invalid storage class for function ‘AddIntfInternal’
libvlc.c:2225: error: invalid storage class for function ‘SetLanguage’
libvlc.c:2292: error: invalid storage class for function ‘GetFilenames’
libvlc.c:2342: error: invalid storage class for function ‘Help’
libvlc.c:2374: error: invalid storage class for function ‘Usage’
libvlc.c:2658: error: invalid storage class for function ‘ListModules’
libvlc.c:2705: error: invalid storage class for function ‘Version’
libvlc.c:2784: error: invalid storage class for function ‘ConsoleWidth’
libvlc.c:2819: error: invalid storage class for function ‘VerboseCallback’
libvlc.c:2835: error: invalid storage class for function ‘InitDeviceValues’
libvlc.c:2921: error: expected declaration or statement at end of input
make[4]: *** [libvlc_a-libvlc.o] Error 1
make[4]: Leaving directory `/home/ims/Desktop/vlc-0.8.6f/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ims/Desktop/vlc-0.8.6f/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ims/Desktop/vlc-0.8.6f/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ims/Desktop/vlc-0.8.6f'
make: *** [all] Error 2
ims at ims-laptop:~/Desktop/vlc-0.8.6f$ 
++++++++++++++++++++++++++++++++++++++++++++++++

the portion of code are:
// CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC           
              char recv_data[1024]; 
              int bytes_received;
              vlc_t * p_vlc = NULL;
              playlist_item_t * p_item;

            playlist_t *p_playlist;
            p_playlist = __playlist_Create (p_vlc);

            char *try;
            try = "[ff3e::33]";

            p_item = playlist_ItemNew(p_playlist, try, NULL );

            playlist_AddItem( p_playlist, p_item, PLAYLIST_APPEND, PLAYLIST_END );

            playlist_Control( p_playlist, PLAYLIST_ITEMPLAY, p_item );
//CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
the code not yet complete, but i face big problem during compile.

Is there are other method or suggestion for me? 

Please help me. Thanks for you all in advance.

Sincerely,
wssoh



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/streaming/attachments/20081223/8e5eeb2b/attachment.htm 


More information about the streaming mailing list