Changeset 5b630376f019b1ea09dd4c4ef7b11ebea78b03a6

Show
Ignore:
Timestamp:
08/08/04 16:49:46 (4 years ago)
Author:
Benjamin Pracht <bigben@videolan.org>
git-committer:
Benjamin Pracht <bigben@videolan.org> 1091976586 +0000
git-parent:

[8525ef0aecc97f5794dcea6917885c9aa280868c]

git-author:
Benjamin Pracht <bigben@videolan.org> 1091976586 +0000
Message:

* demuxdump is working again

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib

    ra45c363 r5b63037  
    44<dict> 
    55    <key>IBDocumentLocation</key> 
    6     <string>793 27 505 517 0 0 1280 1002 </string> 
     6    <string>614 71 505 517 0 0 1024 746 </string> 
    77    <key>IBEditorPositions</key> 
    88    <dict> 
    99        <key>1617</key> 
    10         <string>693 686 104 149 0 0 1280 1002 </string> 
     10        <string>542 480 104 149 0 0 1024 746 </string> 
    1111        <key>29</key> 
    12         <string>521 894 419 44 0 0 1280 1002 </string> 
     12        <string>366 655 419 44 0 0 1024 746 </string> 
    1313        <key>915</key> 
    1414        <string>54 452 185 199 0 0 1024 746 </string> 
     
    2222    <key>IBOpenObjects</key> 
    2323    <array> 
    24         <integer>1617</integer> 
     24        <integer>29</integer> 
    2525        <integer>21</integer> 
    26         <integer>1647</integer> 
    27         <integer>29</integer> 
    28         <integer>2029</integer> 
    2926    </array> 
    3027    <key>IBSystem Version</key> 
  • modules/gui/macosx/open.m

    r766237d r5b63037  
    233233        NSMutableDictionary *o_dic; 
    234234        NSMutableArray *o_options = [NSMutableArray array]; 
     235        unsigned int i; 
     236 
    235237        o_dic = [NSMutableDictionary dictionaryWithObject: [o_mrl stringValue] forKey: @"ITEM_URL"]; 
    236          
    237238        if( [o_file_sub_ckbox state] == NSOnState ) 
    238239        { 
     
    246247        if( [o_output_ckbox state] == NSOnState ) 
    247248        { 
    248             [o_options addObject: [NSString stringWithString: [(VLCOutput *)o_sout_options getMRL]]]; 
     249            for (i = 0 ; i < [[o_sout_options getMRL] count] ; i++) 
     250            { 
     251                [o_options addObject: [NSString stringWithString: 
     252                      [[(VLCOutput *)o_sout_options getMRL] objectAtIndex: i]]]; 
     253            } 
    249254        } 
    250255        [o_dic setObject: (NSArray *)[o_options copy] forKey: @"ITEM_OPTIONS"]; 
  • modules/gui/macosx/output.h

    refe357e r5b63037  
    8181    IBOutlet id o_file_chkbox; 
    8282 
    83     NSString *o_mrl; 
     83    NSArray *o_mrl; 
    8484    NSString *o_transcode; 
    8585} 
    8686 
    87 - (void)setMRL:(NSString *)o_mrl_string; 
    88 - (NSString *)getMRL; 
     87- (void)setMRL:(NSArray *)o_mrl_string; 
     88- (NSArray *)getMRL; 
    8989- (void)setTranscode:(NSString *)o_transcode_string; 
    9090 
  • modules/gui/macosx/output.m

    refe357e r5b63037  
    4242{ 
    4343    self = [super init]; 
    44     o_mrl = [[NSString alloc] init]; 
     44    o_mrl = [[NSArray alloc] init]; 
    4545    o_transcode = [[NSString alloc] init]; 
    4646    return self; 
     
    5454} 
    5555 
    56 - (void)setMRL:(NSString *)o_mrl_string 
     56- (void)setMRL:(NSArray *)o_mrl_array 
    5757{ 
    5858    [o_mrl autorelease]; 
    59     o_mrl = [o_mrl_string copy]; 
    60 } 
    61  
    62 - (NSString *)getMRL 
     59    o_mrl = [o_mrl_array copy]; 
     60} 
     61 
     62- (NSArray *)getMRL 
    6363{ 
    6464    return [o_mrl copy]; 
     
    350350    NSMutableString *o_announce = [NSMutableString stringWithString:@""]; 
    351351    NSMutableString *o_mrl_string = [NSMutableString stringWithString:@":sout=#"]; 
     352    NSArray *o_sout_options; 
    352353 
    353354    [o_mrl_string appendString: o_transcode]; 
     
    374375        if( [o_dump_chkbox state] == NSOnState ) 
    375376        { 
    376             o_mrl_string = [NSMutableString stringWithFormat: 
    377                             @":demux=demuxdump :demuxdump-file=\"%@\"", 
    378                             [o_file_field stringValue]]; 
    379             [self setMRL:o_mrl_string]; 
     377            NSMutableArray * o_sout_options; 
     378            o_sout_options = [NSArray arrayWithObjects: 
     379                                    [NSString stringWithString: 
     380                                    @":demux=dump"], 
     381                                    [NSString stringWithFormat: 
     382                                    @":demuxdump-file=%@", 
     383                                    [o_file_field stringValue]], 
     384                                    nil]; 
     385            [self setMRL:o_sout_options]; 
    380386            return; 
    381387        } 
     
    467473        [o_mrl_string appendString: @"}"]; 
    468474    } 
    469     [self setMRL:o_mrl_string]; 
     475    o_sout_options = [NSArray arrayWithObjects: o_mrl_string,nil]; 
     476    [self setMRL:o_sout_options]; 
    470477} 
    471478