Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
6b67d828
Commit
6b67d828
authored
Apr 11, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework: Back in business.
parent
21ad64a8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
projects/macosx/framework/Pre-Compile.sh
projects/macosx/framework/Pre-Compile.sh
+1
-2
projects/macosx/framework/Sources/VLCLibrary.m
projects/macosx/framework/Sources/VLCLibrary.m
+4
-2
projects/macosx/framework/Sources/VLCMediaPlayer.m
projects/macosx/framework/Sources/VLCMediaPlayer.m
+4
-6
projects/macosx/framework/Sources/VLCStreamSession.m
projects/macosx/framework/Sources/VLCStreamSession.m
+2
-1
projects/macosx/framework/Sources/VLCTime.m
projects/macosx/framework/Sources/VLCTime.m
+2
-2
projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
+1
-1
No files found.
projects/macosx/framework/Pre-Compile.sh
View file @
6b67d828
...
...
@@ -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"
##########################
...
...
projects/macosx/framework/Sources/VLCLibrary.m
View file @
6b67d828
...
...
@@ -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"
};
...
...
projects/macosx/framework/Sources/VLCMediaPlayer.m
View file @
6b67d828
...
...
@@ -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"
];
}
...
...
projects/macosx/framework/Sources/VLCStreamSession.m
View file @
6b67d828
...
...
@@ -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
...
...
projects/macosx/framework/Sources/VLCTime.m
View file @
6b67d828
...
...
@@ -75,7 +75,7 @@
if
(
value
)
{
long
long
duration
=
[
value
longLongValue
]
/
1000000
;
return
[
NSString
stringWithFormat
:
@"%0
2
d:%02d:%02d"
,
return
[
NSString
stringWithFormat
:
@"%0
1
d:%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
@"-:--:--"
;
}
}
...
...
projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
View file @
6b67d828
...
...
@@ -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
=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment