Changeset 63f5355ba2b2e52bba2f4711e90306f3bbd42a3e for oggzcap
- Timestamp:
- 03/15/11 14:58:34 (14 months ago)
- Parents:
- ba360a2d79ae08187e9c7d7ed973ac77c7c62a75
- Children:
- d172f177ff9e7ff75ed885b94cfbdeb9ccf34094
- git-committer:
- Robin Gareus <rgareus@priroda.local> / 2011-03-15T15:58:34Z+0100
- Location:
- oggzcap/src
- Files:
-
- 3 modified
-
MyController.h (modified) (1 diff)
-
MyController.mm (modified) (5 diffs)
-
videoout/encoder_example.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oggzcap/src/MyController.h
r53f2ac9 r63f5355 75 75 IBOutlet NSTextField *outIcecastIPTF, *outIcecastPortTF; 76 76 IBOutlet NSTextField *outIcecastPassword; 77 IBOutlet NSTextField *outIcecastUsername; 77 78 // IBOutlet NSTextField *outIcecastMountTF; 78 79 IBOutlet NSTextField *outBitrateTF, *outQualityTF ; // OUT video Parameters -
oggzcap/src/MyController.mm
rfd4d779 r63f5355 4 4 5 5 extern "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 ); 8 9 void myOggfwd_close() ; 9 10 void encoder_example_init(int inW, int inH, int inFramerate, int in_video_r, int in_video_q) ; … … 259 260 // NSString *tmpIcecastMount = [outIcecastMountTF stringValue] ; 260 261 NSString *tmpStrPassword = [outIcecastPassword stringValue] ; 262 NSString *tmpStrUsername = [outIcecastUsername stringValue] ; 261 263 262 264 NSString *tmpStrName = [projectName stringValue] ; … … 290 292 const char* curl = [tmpStrAuthorURL UTF8String]; 291 293 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) ; 294 297 295 298 if(iceConnect==1) { … … 355 358 // [outIcecastMountTF setEnabled:NO]; 356 359 [outIcecastPassword setEnabled:NO]; 360 [outIcecastUsername setEnabled:NO]; 357 361 [projectName setEnabled:NO]; 358 362 [projectAuthor setEnabled:NO]; … … 412 416 [outIcecastPortTF setEnabled:YES]; 413 417 [outIcecastPassword setEnabled:YES]; 418 [outIcecastUsername setEnabled:YES]; 414 419 // [outIcecastMountTF setEnabled:YES]; 415 420 [projectName setEnabled:YES]; -
oggzcap/src/videoout/encoder_example.c
rfd4d779 r63f5355 278 278 shout_t *myShout; 279 279 //FILE *outTestFile ; 280 int myOggfwd_init( const char* outIceIp, int outIcePort, const char* outPassword, const char* outIceMount, 280 int myOggfwd_init( const char* outIceIp, int outIcePort, 281 const char *outUsername, const char *outPassword, const char *outIceMount, 281 282 const char *description, const char *genre, const char *name, const char *url ) { 282 283 … … 288 289 if (shout_set_host(myShout, outIceIp) != SHOUTERR_SUCCESS) printf("oggfwd - Error - set host pb...%s\n",shout_get_error(myShout)) ; 289 290 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") ; 290 292 if (shout_set_password(myShout, outPassword) != SHOUTERR_SUCCESS) printf("oggfwd - Error - look at the code to know...\n") ; 291 293 if (shout_set_mount(myShout, outIceMount) != SHOUTERR_SUCCESS) printf("oggfwd - Error - look at the code to know...\n") ;
