Show
Ignore:
Timestamp:
11/06/09 14:33:37 (3 years ago)
Author:
rgareus <rgareus@…>
Parents:
6ad46b97c08fbff92c569737162513719a8cee8d
Children:
c921505c5ad730161fe4d8eb95950eb4a3f30173
git-committer:
rgareus <rgareus@CITU-Cuboute.local> / 2009-11-06T15:33:37Z+0100
Message:

various updates..

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • oggzcap/src/videoout/encoder_example.c

    r0a70e0d r2080ee9  
    234234shout_t     *myShout; 
    235235//FILE          *outTestFile ; 
    236 int myOggfwd_init( char* outIceIp, int outIcePort, char* outIceMount ) {                 
     236int myOggfwd_init( const char* outIceIp, int outIcePort, const char* outIceMount, 
     237                   const char *description, const char *genre, const char *name, const char *url ) { 
    237238         
    238239        int res = 0 ; 
    239240         
    240         unsigned int    pFlag; 
    241         char           *description, *genre, *name, *url ; 
    242241        unsigned short  port = outIcePort ; 
    243          
    244         pFlag = 0; 
    245         description = "-" ; 
    246         genre = "-" ; 
    247         name = "InOut Video" ; 
    248         url = "-" ; 
    249242         
    250243        if ((myShout = shout_new()) == NULL) printf("oggfwd - Error - allocate pb%s\n") ; 
     
    254247        if (shout_set_mount(myShout, outIceMount) != SHOUTERR_SUCCESS) printf("oggfwd - Error - look at the code to know...\n") ; 
    255248        shout_set_format(myShout, SHOUT_FORMAT_VORBIS); 
    256         shout_set_public(myShout, pFlag); 
     249        shout_set_public(myShout, 1); 
    257250         
    258251        if (description)        shout_set_description(myShout, description); 
    259         if (genre)                      shout_set_genre(myShout, genre); 
    260         if (name)                       shout_set_name(myShout, name); 
    261         if (url)                        shout_set_url(myShout, url); 
     252        if (genre)              shout_set_genre(myShout, genre); 
     253        if (name)               shout_set_name(myShout, name); 
     254        if (url)                shout_set_url(myShout, url); 
    262255         
    263256        //printf("oggfwd - Trying to connect\n") ;