Changeset 762b3db96149080bc7a700e51f87ae112d07a526
- Timestamp:
- 02/11/08 00:53:48
(7 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1202687628 +0000
- git-parent:
[d6ec7709332f4612c7b8050ca69c94b052d0f3a9]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1202687628 +0000
- Message:
framework: Fix the configure script. Fix a bunch of warnings.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb3372f1 |
r762b3db |
|
| 190 | 190 | * \see lengthWaitUntilDate |
|---|
| 191 | 191 | */ |
|---|
| 192 | | @property (readonly) VLCTime * length; |
|---|
| | 192 | @property (retain, readonly) VLCTime * length; |
|---|
| 193 | 193 | |
|---|
| 194 | 194 | /** |
|---|
| … | … | |
| 210 | 210 | * The URL for the receiver's media resource. |
|---|
| 211 | 211 | */ |
|---|
| 212 | | @property (readonly) NSURL * url; |
|---|
| | 212 | @property (retain, readonly) NSURL * url; |
|---|
| 213 | 213 | |
|---|
| 214 | 214 | /** |
|---|
| 215 | 215 | * The receiver's sub list. |
|---|
| 216 | 216 | */ |
|---|
| 217 | | @property (readonly) VLCMediaList * subitems; |
|---|
| | 217 | @property (retain, readonly) VLCMediaList * subitems; |
|---|
| 218 | 218 | |
|---|
| 219 | 219 | /** |
|---|
| 220 | 220 | * The receiver's meta data as a NSDictionary object. |
|---|
| 221 | 221 | */ |
|---|
| 222 | | @property (readonly) NSDictionary * metaDictionary; |
|---|
| | 222 | @property (retain, readonly) NSDictionary * metaDictionary; |
|---|
| 223 | 223 | |
|---|
| 224 | 224 | /** |
|---|
| rb3372f1 |
r762b3db |
|
| 83 | 83 | const char * lib_vlc_params[] = { |
|---|
| 84 | 84 | "-I", "dummy", "--vout=opengllayer", |
|---|
| 85 | | "--no-video-title-show", "--no-sout-keep", "-vvv" |
|---|
| | 85 | "--no-video-title-show", "--no-sout-keep" |
|---|
| 86 | 86 | //, "--control=motion", "--motion-use-rotate", "--video-filter=rotate" |
|---|
| 87 | 87 | }; |
|---|
| rb3372f1 |
r762b3db |
|
| 359 | 359 | for( NSString * key in [options allKeys] ) |
|---|
| 360 | 360 | { |
|---|
| 361 | | NSLog(@"Adding %@", [NSString stringWithFormat:@"--%@ %@", key, [options objectForKey:key]]); |
|---|
| 362 | 361 | libvlc_media_descriptor_add_option(p_md, [[NSString stringWithFormat:@"%@=#%@", key, [options objectForKey:key]] UTF8String], NULL); |
|---|
| 363 | 362 | } |
|---|
| … | … | |
| 461 | 460 | |
|---|
| 462 | 461 | state = LibVLCStateToMediaState(libvlc_media_descriptor_get_state( p_md, NULL )); |
|---|
| | 462 | |
|---|
| 463 | 463 | /* Force VLCMetaInformationTitle, that will trigger preparsing |
|---|
| 464 | 464 | * And all the other meta will be added through the libvlc event system */ |
|---|
| 465 | 465 | [self fetchMetaInformationFromLibVLCWithType: VLCMetaInformationTitle]; |
|---|
| | 466 | |
|---|
| | 467 | /* Force VLCMetaInformationArtworkURL, that will trigger artwork fetching */ |
|---|
| | 468 | [self fetchMetaInformationFromLibVLCWithType: VLCMetaInformationArtworkURL]; |
|---|
| 466 | 469 | } |
|---|
| 467 | 470 | |
|---|
| … | … | |
| 473 | 476 | free(psz_value); |
|---|
| 474 | 477 | |
|---|
| 475 | | if ( !(newValue && oldValue && [oldValue compare:newValue] == NSOrderedSame) ) |
|---|
| | 478 | if ( newValue != oldValue && !(oldValue && newValue && [oldValue compare:newValue] == NSOrderedSame) ) |
|---|
| 476 | 479 | { |
|---|
| 477 | 480 | if ([metaType isEqualToString:VLCMetaInformationArtworkURL]) |
|---|
| … | … | |
| 490 | 493 | { |
|---|
| 491 | 494 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; |
|---|
| 492 | | |
|---|
| 493 | | // Go ahead and load up the art work |
|---|
| 494 | | NSURL * artUrl = [NSURL URLWithString:[anURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; |
|---|
| 495 | | NSImage * art = [[[NSImage alloc] initWithContentsOfURL:artUrl] autorelease]; |
|---|
| 496 | | |
|---|
| | 495 | NSImage * art = nil; |
|---|
| | 496 | |
|---|
| | 497 | if( anURL ) |
|---|
| | 498 | { |
|---|
| | 499 | // Go ahead and load up the art work |
|---|
| | 500 | NSURL * artUrl = [NSURL URLWithString:[anURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; |
|---|
| | 501 | |
|---|
| | 502 | // Don't attempt to fetch artwork from remote. Core will do that alone |
|---|
| | 503 | if ([artUrl isFileURL]) |
|---|
| | 504 | art = [[[NSImage alloc] initWithContentsOfURL:artUrl] autorelease]; |
|---|
| | 505 | } |
|---|
| | 506 | |
|---|
| 497 | 507 | // If anything was found, lets save it to the meta data dictionary |
|---|
| 498 | | if (art) |
|---|
| 499 | | { |
|---|
| 500 | | [self performSelectorOnMainThread:@selector(setArtwork:) withObject:art waitUntilDone:NO]; |
|---|
| 501 | | } |
|---|
| | 508 | [self performSelectorOnMainThread:@selector(setArtwork:) withObject:art waitUntilDone:NO]; |
|---|
| 502 | 509 | |
|---|
| 503 | 510 | [pool release]; |
|---|
| … | … | |
| 506 | 513 | - (void)setArtwork:(NSImage *)art |
|---|
| 507 | 514 | { |
|---|
| | 515 | if (!art) |
|---|
| | 516 | { |
|---|
| | 517 | [metaDictionary removeObjectForKey:@"artwork"]; |
|---|
| | 518 | return; |
|---|
| | 519 | } |
|---|
| | 520 | |
|---|
| 508 | 521 | [metaDictionary setObject:art forKey:@"artwork"]; |
|---|
| 509 | 522 | } |
|---|
| rb3372f1 |
r762b3db |
|
| 95 | 95 | |
|---|
| 96 | 96 | [CATransaction commit]; |
|---|
| | 97 | |
|---|
| | 98 | /* Trigger by hand, as it doesn't go through else. Assumed bug from Cocoa */ |
|---|
| | 99 | [self willChangeValueForKey:@"hasVideo"]; |
|---|
| 97 | 100 | self.hasVideo = YES; |
|---|
| | 101 | [self didChangeValueForKey:@"hasVideo"]; |
|---|
| 98 | 102 | } |
|---|
| 99 | 103 | |
|---|
| … | … | |
| 103 | 107 | [voutLayer removeFromSuperlayer]; |
|---|
| 104 | 108 | [CATransaction commit]; |
|---|
| | 109 | |
|---|
| | 110 | /* Trigger by hand, as it doesn't go through else. Assumed bug from Cocoa */ |
|---|
| | 111 | [self willChangeValueForKey:@"hasVideo"]; |
|---|
| 105 | 112 | self.hasVideo = NO; |
|---|
| | 113 | [self didChangeValueForKey:@"hasVideo"]; |
|---|
| 106 | 114 | } |
|---|
| 107 | 115 | |
|---|
| r816f808 |
r762b3db |
|
| 431 | 431 | runOnlyForDeploymentPostprocessing = 0; |
|---|
| 432 | 432 | shellPath = /bin/sh; |
|---|
| 433 | | shellScript = "top_srcdir=`pwd`/../../..\n\nif test $ACTION = \"clean\"\nthen\n rm -f $SYMROOT/vlc_build_dir/CMakeLists.txt\n exit 0\nfi\n\necho \"$SRCROOT/../../../CMakeLists.txt doesn't exists\"\ncd $top_srcdir && ./extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh\n"; |
|---|
| | 433 | shellScript = "top_srcdir=`pwd`/../../..\n\nif test $ACTION = \"clean\"\nthen\n rm -f $SYMROOT/vlc_build_dir/CMakeLists.txt\n exit 0\nfi\n\ncd $top_srcdir && ./extras/buildsystem/cmake/scripts/convert_vlc_to_cmake.sh\n"; |
|---|
| 434 | 434 | showEnvVarsInLog = 0; |
|---|
| 435 | 435 | }; |
|---|
| … | … | |
| 476 | 476 | runOnlyForDeploymentPostprocessing = 0; |
|---|
| 477 | 477 | shellPath = /bin/sh; |
|---|
| 478 | | shellScript = "echo $ACTION\nif test $ACTION = \"clean\"\nthen\n\trm -Rf $SYMROOT/vlc_build_dir\n exit 0\nfi\n\ntop_srcdir=`pwd`/../../..\n\nif ! test -e $SYMROOT/vlc_build_dir/CMakeCache.txt\nthen\n\tmkdir -p $SYMROOT/vlc_build_dir\n\trm -Rf $top_srcdir/CMakeCache.txt\n\tcd $SYMROOT/vlc_build_dir && $top_srcdir/extras/contrib/bin/cmake $top_srcdir -DENABLE_NO_SYMBOL_CHECK=ON\nfi"; |
|---|
| | 478 | shellScript = "if test $ACTION = \"clean\"\nthen\n\trm -Rf $SYMROOT/vlc_build_dir\n exit 0\nfi\n\ntop_srcdir=`pwd`/../../..\n\nif ! test -e $SYMROOT/vlc_build_dir/CMakeCache.txt\nthen\n\tmkdir -p $SYMROOT/vlc_build_dir\n\trm -Rf $top_srcdir/CMakeCache.txt\n\tcd $SYMROOT/vlc_build_dir && $top_srcdir/extras/contrib/bin/cmake $top_srcdir -DENABLE_NO_SYMBOL_CHECK=ON\nfi"; |
|---|
| 479 | 479 | showEnvVarsInLog = 0; |
|---|
| 480 | 480 | }; |
|---|