Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
abcd6bc8
Commit
abcd6bc8
authored
Jan 31, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCMedia: Don't use setLength in -length. It is bad for bindings.
parent
09020b63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
projects/macosx/framework/Sources/VLCMedia.m
projects/macosx/framework/Sources/VLCMedia.m
+2
-3
No files found.
projects/macosx/framework/Sources/VLCMedia.m
View file @
abcd6bc8
...
...
@@ -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
// then the release message is not sent to it.
delegate
=
nil
;
[
self
setLength
:
nil
];
[
length
release
];
[
url
release
];
[
subitems
release
];
[
metaDictionary
release
];
...
...
@@ -281,7 +280,7 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
long
long
duration
=
libvlc_media_get_duration
(
p_md
,
NULL
);
if
(
duration
>
-
1
)
{
[
self
setLength
:[
VLCTime
timeWithNumber
:[
NSNumber
numberWithLongLong
:
duration
]]
];
length
=
[[
VLCTime
timeWithNumber
:[
NSNumber
numberWithLongLong
:
duration
]]
retain
];
return
[[
length
retain
]
autorelease
];
}
return
[
VLCTime
nullTime
];
...
...
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