[vlc-devel] commit: macosx/framework: Back in business. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Apr 11 21:38:10 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sat Apr 11 10:33:06 2009 -0700| [6b67d828e28c71cccf32ec2ddc39c92a15f4d52d] | committer: Pierre d'Herbemont
macosx/framework: Back in business.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6b67d828e28c71cccf32ec2ddc39c92a15f4d52d
---
projects/macosx/framework/Pre-Compile.sh | 3 +--
projects/macosx/framework/Sources/VLCLibrary.m | 6 ++++--
projects/macosx/framework/Sources/VLCMediaPlayer.m | 10 ++++------
.../macosx/framework/Sources/VLCStreamSession.m | 3 ++-
projects/macosx/framework/Sources/VLCTime.m | 4 ++--
.../framework/VLCKit.xcodeproj/project.pbxproj | 2 +-
6 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/projects/macosx/framework/Pre-Compile.sh b/projects/macosx/framework/Pre-Compile.sh
index 6a23dc2..3a4b485 100644
--- a/projects/macosx/framework/Pre-Compile.sh
+++ b/projects/macosx/framework/Pre-Compile.sh
@@ -153,8 +153,7 @@ if test "${ACTION}" = "build"; then
esac
done
- #install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.dylib" ${target_lib} "library"
- install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.2.dylib" ${target_lib} "library"
+ install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.dylib" ${target_lib} "library"
install_library "${VLC_BUILD_DIR}/src/${prefix}libvlccore.dylib" ${target_lib} "library"
##########################
diff --git a/projects/macosx/framework/Sources/VLCLibrary.m b/projects/macosx/framework/Sources/VLCLibrary.m
index 8e6467e..2374141 100644
--- a/projects/macosx/framework/Sources/VLCLibrary.m
+++ b/projects/macosx/framework/Sources/VLCLibrary.m
@@ -91,8 +91,10 @@ void * DestroySharedLibraryAtExit( void )
libvlc_exception_init( &ex );
const char * lib_vlc_params[] = {
- "-I", "dummy", "--vout=opengllayer",
- "--no-video-title-show", "--no-sout-keep", "--ignore-config"
+ "-I", "dummy", "--vout=minimal_macosx",
+ "--no-video-title-show", "--no-sout-keep", "--ignore-config",
+ "--opengl-provider=minimal_macosx",
+ "-verbose=-1"
//, "--control=motion", "--motion-use-rotate", "--video-filter=rotate"
};
diff --git a/projects/macosx/framework/Sources/VLCMediaPlayer.m b/projects/macosx/framework/Sources/VLCMediaPlayer.m
index 7188760..be11560 100644
--- a/projects/macosx/framework/Sources/VLCMediaPlayer.m
+++ b/projects/macosx/framework/Sources/VLCMediaPlayer.m
@@ -63,7 +63,6 @@ static void HandleMediaInstanceVolumeChanged(const libvlc_event_t * event, void
static void HandleMediaTimeChanged(const libvlc_event_t * event, void * self)
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(mediaPlayerTimeChanged:)
withArgumentAsObject:[NSNumber numberWithLongLong:event->u.media_player_time_changed.new_time]];
@@ -224,8 +223,8 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
// Make sure that this instance has been associated with the drawing canvas.
libvlc_exception_t ex;
libvlc_exception_init( &ex );
- libvlc_media_player_set_drawable ((libvlc_media_player_t *)instance,
- (libvlc_drawable_t)aDrawable,
+ libvlc_media_player_set_nsobject ((libvlc_media_player_t *)instance,
+ aDrawable,
&ex);
catch_exception( &ex );
}
@@ -664,15 +663,14 @@ static const VLCMediaPlayerState libvlc_to_local_state[] =
[self willChangeValueForKey:@"time"];
[cachedTime release];
cachedTime = [[VLCTime timeWithNumber:newTime] retain];
+
[self didChangeValueForKey:@"time"];
}
- (void)mediaPlayerPositionChanged:(NSNumber *)newPosition
{
- if( [newPosition floatValue] - position < 0.005 && position - [newPosition floatValue] < 0.005 )
- return; /* Forget that, this is too much precision for our uses */
[self willChangeValueForKey:@"position"];
- position = ((float)((int)([newPosition floatValue]*1000)))/1000.;
+ position = [newPosition floatValue];
[self didChangeValueForKey:@"position"];
}
diff --git a/projects/macosx/framework/Sources/VLCStreamSession.m b/projects/macosx/framework/Sources/VLCStreamSession.m
index 97ff226..d4884ce 100644
--- a/projects/macosx/framework/Sources/VLCStreamSession.m
+++ b/projects/macosx/framework/Sources/VLCStreamSession.m
@@ -63,7 +63,7 @@
[self play];
}
-- (void)play;
+- (BOOL)play;
{
NSString * libvlcArgs;
if( self.drawable )
@@ -81,6 +81,7 @@
[super setMedia: self.media];
}
[super play];
+ return YES;
}
+ (NSSet *)keyPathsForValuesAffectingDescription
diff --git a/projects/macosx/framework/Sources/VLCTime.m b/projects/macosx/framework/Sources/VLCTime.m
index d79fa06..360a01d 100644
--- a/projects/macosx/framework/Sources/VLCTime.m
+++ b/projects/macosx/framework/Sources/VLCTime.m
@@ -75,7 +75,7 @@
if (value)
{
long long duration = [value longLongValue] / 1000000;
- return [NSString stringWithFormat:@"%02d:%02d:%02d",
+ return [NSString stringWithFormat:@"%01d:%02d:%02d",
(long) (duration / 3600),
(long)((duration / 60) % 60),
(long) (duration % 60)];
@@ -83,7 +83,7 @@
else
{
// Return a string that represents an undefined time.
- return @"--:--:--";
+ return @"-:--:--";
}
}
diff --git a/projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj b/projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
index 7dcf61f..ba54d8a 100644
--- a/projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
+++ b/projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
@@ -571,7 +571,7 @@
INFOPLIST_FILE = Resources/Info.plist;
INSTALL_PATH = "@loader_path/../Frameworks";
LD_FLAGS_LIBINTL = "-dylib_file @loader_path/../lib/vlc_libintl.dylib:$(VLC_FRAMEWORK)/lib/vlc_libintl.dylib";
- LD_FLAGS_LIBVLC = "-dylib_file @loader_path/lib/libvlc.dylib:$(VLC_FRAMEWORK)/lib/libvlc.dylib -dylib_file @loader_path/../lib/libvlc.dylib:$(VLC_FRAMEWORK)/lib/libvlc.dylib";
+ LD_FLAGS_LIBVLC = "-dylib_file @loader_path/lib/libvlc.dylib:$(VLC_FRAMEWORK)/lib/libvlc.dylib";
LD_FLAGS_LIBVLC_CONTROL = "-dylib_file @loader_path/lib/libvlc-control.dylib:$(VLC_FRAMEWORK)/lib/libvlc-control.dylib";
LIBRARY_SEARCH_PATHS = "$(VLC_FRAMEWORK)/lib";
OTHER_LDFLAGS = (
More information about the vlc-devel
mailing list