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
cb9e605b
Commit
cb9e605b
authored
Feb 01, 2010
by
JP Dinger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git@git.videolan.org/vlc
parents
0afbf878
58b04763
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
18 deletions
+4
-18
projects/macosx/framework/Sources/VLCMedia.m
projects/macosx/framework/Sources/VLCMedia.m
+2
-3
projects/macosx/framework/Sources/VLCVideoView.m
projects/macosx/framework/Sources/VLCVideoView.m
+2
-15
No files found.
projects/macosx/framework/Sources/VLCMedia.m
View file @
cb9e605b
...
@@ -245,8 +245,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
...
@@ -245,8 +245,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
// Testing to see if the pointer exists is not required, if the pointer is null
// Testing to see if the pointer exists is not required, if the pointer is null
// then the release message is not sent to it.
// then the release message is not sent to it.
delegate
=
nil
;
delegate
=
nil
;
[
self
setLength
:
nil
];
[
length
release
];
[
url
release
];
[
url
release
];
[
subitems
release
];
[
subitems
release
];
[
metaDictionary
release
];
[
metaDictionary
release
];
...
@@ -281,7 +280,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
...
@@ -281,7 +280,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
long
long
duration
=
libvlc_media_get_duration
(
p_md
,
NULL
);
long
long
duration
=
libvlc_media_get_duration
(
p_md
,
NULL
);
if
(
duration
>
-
1
)
if
(
duration
>
-
1
)
{
{
[
self
setLength
:[
VLCTime
timeWithNumber
:[
NSNumber
numberWithLongLong
:
duration
]]
];
length
=
[[
VLCTime
timeWithNumber
:[
NSNumber
numberWithLongLong
:
duration
]]
retain
];
return
[[
length
retain
]
autorelease
];
return
[[
length
retain
]
autorelease
];
}
}
return
[
VLCTime
nullTime
];
return
[
VLCTime
nullTime
];
...
...
projects/macosx/framework/Sources/VLCVideoView.m
View file @
cb9e605b
...
@@ -185,26 +185,13 @@
...
@@ -185,26 +185,13 @@
return
stretchesVideo
;
return
stretchesVideo
;
}
}
/* This is called by the libvlc module 'minimal_macosx' as soon as there is one
/* This is called by the libvlc module 'minimal_macosx' as soon as there is one
* vout available
* vout available
*/
*/
-
(
void
)
addVoutSubview
:(
NSView
*
)
aView
/* (Scheduled to deletion) */
-
(
void
)
addVoutSubview
:(
NSView
*
)
aView
/* (Scheduled to deletion) */
{
{
/* This is where the real video comes from */
if
(
[[
self
subviews
]
count
]
)
{
/* XXX: This is a hack until core gets fixed */
NSUInteger
i
;
for
(
i
=
0
;
i
<
[[
self
subviews
]
count
];
i
++
)
{
[[[
self
subviews
]
objectAtIndex
:
i
]
detachFromVout
];
[[[
self
subviews
]
objectAtIndex
:
i
]
retain
];
[[[
self
subviews
]
objectAtIndex
:
i
]
removeFromSuperview
];
}
}
[
aView
setFrame
:[
self
bounds
]];
[
aView
setFrame
:[
self
bounds
]];
[
self
addSubview
:
aView
];
[
self
addSubview
:
aView
];
// TODO: Should we let the media player specify these values?
// TODO: Should we let the media player specify these values?
...
...
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