Changeset 63f5355ba2b2e52bba2f4711e90306f3bbd42a3e

Show
Ignore:
Timestamp:
03/15/11 14:58:34 (14 months ago)
Author:
Robin Gareus <rgareus@…>
Parents:
ba360a2d79ae08187e9c7d7ed973ac77c7c62a75
Children:
d172f177ff9e7ff75ed885b94cfbdeb9ccf34094
git-committer:
Robin Gareus <rgareus@priroda.local> / 2011-03-15T15:58:34Z+0100
Message:

oggZcap: added icecast2 username entry.

Location:
oggzcap/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • oggzcap/src/MyController.h

    r53f2ac9 r63f5355  
    7575        IBOutlet NSTextField    *outIcecastIPTF, *outIcecastPortTF; 
    7676        IBOutlet NSTextField    *outIcecastPassword; 
     77        IBOutlet NSTextField    *outIcecastUsername; 
    7778//      IBOutlet NSTextField    *outIcecastMountTF; 
    7879        IBOutlet NSTextField    *outBitrateTF, *outQualityTF ; // OUT video Parameters 
  • oggzcap/src/MyController.mm

    rfd4d779 r63f5355  
    44 
    55extern "C" { 
    6         int myOggfwd_init( const char* outIceIp, int outIcePort, const char* outPassword, const char* outIceMount, 
    7                            const char *description, const char *genre, const char *name, const char *url ); 
     6  int myOggfwd_init( const char* outIceIp, int outIcePort,  
     7         const char *outUsername, const char *outPassword, const char *outIceMount, 
     8         const char *description, const char *genre, const char *name, const char *url ); 
    89        void myOggfwd_close() ; 
    910        void encoder_example_init(int inW, int inH, int inFramerate, int in_video_r, int in_video_q) ; 
     
    259260//      NSString *tmpIcecastMount = [outIcecastMountTF stringValue] ; 
    260261        NSString *tmpStrPassword = [outIcecastPassword stringValue] ; 
     262        NSString *tmpStrUsername = [outIcecastUsername stringValue] ; 
    261263 
    262264        NSString *tmpStrName   = [projectName stringValue] ; 
     
    290292        const char* curl   = [tmpStrAuthorURL UTF8String]; 
    291293        const char* cpass  = [tmpStrPassword UTF8String]; 
    292  
    293         int iceConnect = myOggfwd_init(cip, tmpIcecastPort, "inoutsource", (const char*) cmount, cdesc, ctags, cname, curl) ; 
     294        const char* user   = [tmpStrUsername UTF8String]; 
     295 
     296        int iceConnect = myOggfwd_init(cip, tmpIcecastPort, strlen(user)?user:NULL, cpass, (const char*) cmount, cdesc, ctags, cname, curl) ; 
    294297         
    295298        if(iceConnect==1) { 
     
    355358//              [outIcecastMountTF setEnabled:NO]; 
    356359                [outIcecastPassword setEnabled:NO]; 
     360                [outIcecastUsername setEnabled:NO]; 
    357361                [projectName setEnabled:NO]; 
    358362                [projectAuthor setEnabled:NO]; 
     
    412416        [outIcecastPortTF setEnabled:YES]; 
    413417        [outIcecastPassword setEnabled:YES]; 
     418        [outIcecastUsername setEnabled:YES]; 
    414419//      [outIcecastMountTF setEnabled:YES]; 
    415420        [projectName setEnabled:YES]; 
  • oggzcap/src/videoout/encoder_example.c

    rfd4d779 r63f5355  
    278278shout_t     *myShout; 
    279279//FILE          *outTestFile ; 
    280 int myOggfwd_init( const char* outIceIp, int outIcePort, const char* outPassword, const char* outIceMount, 
     280int myOggfwd_init( const char* outIceIp, int outIcePort,  
     281                         const char *outUsername, const char *outPassword, const char *outIceMount, 
    281282                   const char *description, const char *genre, const char *name, const char *url ) { 
    282283         
     
    288289        if (shout_set_host(myShout, outIceIp) != SHOUTERR_SUCCESS) printf("oggfwd - Error - set host pb...%s\n",shout_get_error(myShout)) ; 
    289290        if (shout_set_port(myShout, port) != SHOUTERR_SUCCESS) printf("oggfwd - Error - look at the code to know...\n") ; 
     291        if (outUsername && shout_set_user(myShout, outUsername) != SHOUTERR_SUCCESS) printf("oggfwd - Error - look at the code to know...\n") ; 
    290292        if (shout_set_password(myShout, outPassword) != SHOUTERR_SUCCESS) printf("oggfwd - Error - look at the code to know...\n") ; 
    291293        if (shout_set_mount(myShout, outIceMount) != SHOUTERR_SUCCESS) printf("oggfwd - Error - look at the code to know...\n") ;