- Timestamp:
- 02/24/10 00:46:12 (2 years ago)
- Parents:
- b05f1efa827beabba2d4dd6d7e9298cdb56c25ef
- Children:
- 2f7b6650795d38c763f324a167de2027135b725b, fd4d779342a16f50de84c3747aaede85d3953f77
- git-committer:
- Robin Gareus <rgareus@priroda.local> / 2010-02-24T01:46:12Z+0100
- Files:
-
- 1 modified
-
oggzcap/src/MyController.mm (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oggzcap/src/MyController.mm
r66e0a72 r53f2ac9 4 4 5 5 extern "C" { 6 int myOggfwd_init( const char* outIceIp, int outIcePort, const char* out IceMount,7 const char *description, const char *genre, const char *name, const char *url );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 ); 8 8 void myOggfwd_close() ; 9 9 void encoder_example_init(int inW, int inH, int inFramerate, int in_video_r, int in_video_q) ; … … 189 189 -(void)initINOUT 190 190 { 191 [self pLog:@"[ MyController] GENERAL INIT...\n"] ;191 [self pLog:@"[OggZCap] Initialization..\n"] ; 192 192 193 193 // NSRect srcRect = NSMakeRect(0, 0, 320, 240); … … 258 258 int tmpIcecastPort = [outIcecastPortTF intValue] ; 259 259 // NSString *tmpIcecastMount = [outIcecastMountTF stringValue] ; 260 NSString *tmpStrPassword = [outIcecastPassword stringValue] ; 260 261 261 262 NSString *tmpStrName = [projectName stringValue] ; … … 288 289 const char* ctags = [tmpStrTags UTF8String]; 289 290 const char* curl = [tmpStrAuthorURL UTF8String]; 290 291 int iceConnect = myOggfwd_init(cip, tmpIcecastPort, (const char*) cmount, cdesc, ctags, cname, curl) ; 291 const char* cpass = [tmpStrPassword UTF8String]; 292 293 int iceConnect = myOggfwd_init(cip, tmpIcecastPort, "inoutsource", (const char*) cmount, cdesc, ctags, cname, curl) ; 292 294 293 295 if(iceConnect==1) { … … 344 346 [startOutButton setEnabled:NO]; 345 347 [stopOutButton setEnabled:YES]; 348 [resizeRadio setEnabled:NO]; 346 349 //[showZoneButton setEnabled:NO]; 347 350 … … 351 354 [outIcecastPortTF setEnabled:NO]; 352 355 // [outIcecastMountTF setEnabled:NO]; 356 [outIcecastPassword setEnabled:NO]; 353 357 [projectName setEnabled:NO]; 354 358 [projectAuthor setEnabled:NO]; … … 401 405 [stopOutButton setEnabled:NO]; 402 406 [showZoneButton setEnabled:YES]; 407 [resizeRadio setEnabled:YES]; 403 408 404 409 [outBitrateTF setEnabled:YES]; … … 406 411 [outIcecastIPTF setEnabled:YES]; 407 412 [outIcecastPortTF setEnabled:YES]; 413 [outIcecastPassword setEnabled:YES]; 408 414 // [outIcecastMountTF setEnabled:YES]; 409 415 [projectName setEnabled:YES]; … … 659 665 /// Display size and location 660 666 //printf("INOUT - : pos = %d\n", rowS ); 667 [self pLog:[NSString stringWithFormat:@"Capture Size: %d:%d\n", newW, newH]] ; 661 668 } 662 669
