diff options
author | dynaflash <[email protected]> | 2008-01-07 19:54:42 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-01-07 19:54:42 +0000 |
commit | dc025a66b61863c8578b86c256bffd7b0b7c6aab (patch) | |
tree | 8ddc57680240ea4d1f11285909a54cae3f46ed94 /macosx/Controller.mm | |
parent | a50e8fc4e544dbd0cf43b3e7599f7734921bc93b (diff) |
Macgui: Change to using stderr to write to the activity window from within the gui.
- stdout works, but only when run from within xcode. not when hb is run by itself.
- Duh!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1171 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 4a5488838..6bf9a125b 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -1084,7 +1084,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* User selected a file to open */ if( returnCode == NSOKButton ) { - + NSString *scanPath = [[sheet filenames] objectAtIndex: 0]; /* we set the last searched source directory in the prefs here */ NSString *sourceDirectory = [scanPath stringByDeletingLastPathComponent]; @@ -1131,11 +1131,11 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* We check to see if the chosen file at path is a package */ if ([[NSWorkspace sharedWorkspace] isFilePackageAtPath:path]) { - fprintf( stdout, "MacGui: Trying to open a package\n"); + fprintf( stderr, "MacGui: trying to open a package\n"); /* We check to see if this is an .eyetv package */ if ([[path pathExtension] isEqualToString: @"eyetv"]) { - fprintf( stdout, "MacGui: Trying to open eyetv package\n"); + fprintf( stderr, "MacGui: trying to open eyetv package\n"); /* We're looking at an EyeTV package - try to open its enclosed .mpg media file */ NSString *mpgname; @@ -1148,19 +1148,19 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It /* Found an mpeg inside the eyetv package, make it our scan path and call performScan on the enclosed mpeg */ path = mpgname; - fprintf( stdout, "MacGui: found mpeg in eyetv package\n"); + fprintf( stderr, "MacGui: found mpeg in eyetv package\n"); [self performScan:path scanTitleNum:0]; } else { /* We did not find an mpeg file in our package, so we do not call performScan */ - fprintf( stdout, "MacGui: no valid mpeg in eyetv package\n"); + fprintf( stderr, "MacGui: no valid mpeg in eyetv package\n"); } } else { /* The package is not an eyetv package, so we do not call performScan */ - fprintf( stdout, "MacGui: Unable to open package\n"); + fprintf( stderr, "MacGui: unable to open package\n"); } } else |