Changeset 5b630376f019b1ea09dd4c4ef7b11ebea78b03a6
- 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
| ra45c363 |
r5b63037 |
|
| 4 | 4 | <dict> |
|---|
| 5 | 5 | <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> |
|---|
| 7 | 7 | <key>IBEditorPositions</key> |
|---|
| 8 | 8 | <dict> |
|---|
| 9 | 9 | <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> |
|---|
| 11 | 11 | <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> |
|---|
| 13 | 13 | <key>915</key> |
|---|
| 14 | 14 | <string>54 452 185 199 0 0 1024 746 </string> |
|---|
| … | … | |
| 22 | 22 | <key>IBOpenObjects</key> |
|---|
| 23 | 23 | <array> |
|---|
| 24 | | <integer>1617</integer> |
|---|
| | 24 | <integer>29</integer> |
|---|
| 25 | 25 | <integer>21</integer> |
|---|
| 26 | | <integer>1647</integer> |
|---|
| 27 | | <integer>29</integer> |
|---|
| 28 | | <integer>2029</integer> |
|---|
| 29 | 26 | </array> |
|---|
| 30 | 27 | <key>IBSystem Version</key> |
|---|
| r766237d |
r5b63037 |
|
| 233 | 233 | NSMutableDictionary *o_dic; |
|---|
| 234 | 234 | NSMutableArray *o_options = [NSMutableArray array]; |
|---|
| | 235 | unsigned int i; |
|---|
| | 236 | |
|---|
| 235 | 237 | o_dic = [NSMutableDictionary dictionaryWithObject: [o_mrl stringValue] forKey: @"ITEM_URL"]; |
|---|
| 236 | | |
|---|
| 237 | 238 | if( [o_file_sub_ckbox state] == NSOnState ) |
|---|
| 238 | 239 | { |
|---|
| … | … | |
| 246 | 247 | if( [o_output_ckbox state] == NSOnState ) |
|---|
| 247 | 248 | { |
|---|
| 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 | } |
|---|
| 249 | 254 | } |
|---|
| 250 | 255 | [o_dic setObject: (NSArray *)[o_options copy] forKey: @"ITEM_OPTIONS"]; |
|---|
| refe357e |
r5b63037 |
|
| 81 | 81 | IBOutlet id o_file_chkbox; |
|---|
| 82 | 82 | |
|---|
| 83 | | NSString *o_mrl; |
|---|
| | 83 | NSArray *o_mrl; |
|---|
| 84 | 84 | NSString *o_transcode; |
|---|
| 85 | 85 | } |
|---|
| 86 | 86 | |
|---|
| 87 | | - (void)setMRL:(NSString *)o_mrl_string; |
|---|
| 88 | | - (NSString *)getMRL; |
|---|
| | 87 | - (void)setMRL:(NSArray *)o_mrl_string; |
|---|
| | 88 | - (NSArray *)getMRL; |
|---|
| 89 | 89 | - (void)setTranscode:(NSString *)o_transcode_string; |
|---|
| 90 | 90 | |
|---|
| refe357e |
r5b63037 |
|
| 42 | 42 | { |
|---|
| 43 | 43 | self = [super init]; |
|---|
| 44 | | o_mrl = [[NSString alloc] init]; |
|---|
| | 44 | o_mrl = [[NSArray alloc] init]; |
|---|
| 45 | 45 | o_transcode = [[NSString alloc] init]; |
|---|
| 46 | 46 | return self; |
|---|
| … | … | |
| 54 | 54 | } |
|---|
| 55 | 55 | |
|---|
| 56 | | - (void)setMRL:(NSString *)o_mrl_string |
|---|
| | 56 | - (void)setMRL:(NSArray *)o_mrl_array |
|---|
| 57 | 57 | { |
|---|
| 58 | 58 | [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 |
|---|
| 63 | 63 | { |
|---|
| 64 | 64 | return [o_mrl copy]; |
|---|
| … | … | |
| 350 | 350 | NSMutableString *o_announce = [NSMutableString stringWithString:@""]; |
|---|
| 351 | 351 | NSMutableString *o_mrl_string = [NSMutableString stringWithString:@":sout=#"]; |
|---|
| | 352 | NSArray *o_sout_options; |
|---|
| 352 | 353 | |
|---|
| 353 | 354 | [o_mrl_string appendString: o_transcode]; |
|---|
| … | … | |
| 374 | 375 | if( [o_dump_chkbox state] == NSOnState ) |
|---|
| 375 | 376 | { |
|---|
| 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]; |
|---|
| 380 | 386 | return; |
|---|
| 381 | 387 | } |
|---|
| … | … | |
| 467 | 473 | [o_mrl_string appendString: @"}"]; |
|---|
| 468 | 474 | } |
|---|
| 469 | | [self setMRL:o_mrl_string]; |
|---|
| | 475 | o_sout_options = [NSArray arrayWithObjects: o_mrl_string,nil]; |
|---|
| | 476 | [self setMRL:o_sout_options]; |
|---|
| 470 | 477 | } |
|---|
| 471 | 478 | |
|---|