Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3f4aec54
Commit
3f4aec54
authored
Jan 29, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework: libvlc_track_description_release.
parent
bcfa8de4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
projects/macosx/framework/Sources/VLCMediaPlayer.m
projects/macosx/framework/Sources/VLCMediaPlayer.m
+8
-11
No files found.
projects/macosx/framework/Sources/VLCMediaPlayer.m
View file @
3f4aec54
...
...
@@ -61,13 +61,6 @@ NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state)
return
stateToStrings
[
state
];
}
static
inline
libvlc_track_description_t
*
freeAndGetNextTrack
(
libvlc_track_description_t
*
track
)
{
libvlc_track_description_t
*
next
=
track
->
p_next
;
libvlc_track_description_release
(
track
);
return
next
;
}
/* libvlc event callback */
static
void
HandleMediaInstanceVolumeChanged
(
const
libvlc_event_t
*
event
,
void
*
self
)
{
...
...
@@ -328,8 +321,9 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
NSMutableArray
*
tempArray
=
[
NSMutableArray
array
];
while
(
currentTrack
)
{
[
tempArray
addObject
:[
NSString
stringWithUTF8String
:
currentTrack
->
psz_name
]];
currentTrack
=
freeAndGetNextTrack
(
currentTrack
)
;
currentTrack
=
currentTrack
->
p_next
;
}
libvlc_track_description_release
(
currentTrack
);
return
[
NSArray
arrayWithArray
:
tempArray
];
}
...
...
@@ -525,8 +519,9 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
for
(
i
=
0
;
i
<
count
;
i
++
)
{
[
tempArray
addObject
:[
NSString
stringWithUTF8String
:
tracks
->
psz_name
]];
tracks
=
freeAndGetNextTrack
(
tracks
)
;
tracks
=
tracks
->
p_next
;
}
libvlc_track_description_release
(
tracks
);
return
[
NSArray
arrayWithArray
:
tempArray
];
}
...
...
@@ -575,8 +570,9 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
for
(
i
=
0
;
i
<
[
self
countOfTitles
]
;
i
++
)
{
[
tempArray
addObject
:[
NSString
stringWithUTF8String
:
tracks
->
psz_name
]];
tracks
=
freeAndGetNextTrack
(
tracks
)
;
tracks
=
tracks
->
p_next
;
}
libvlc_track_description_release
(
tracks
);
return
[
NSArray
arrayWithArray
:
tempArray
];
}
...
...
@@ -619,8 +615,9 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
for
(
i
=
0
;
i
<
count
;
i
++
)
{
[
tempArray
addObject
:[
NSString
stringWithUTF8String
:
tracks
->
psz_name
]];
tracks
=
freeAndGetNextTrack
(
tracks
)
;
tracks
=
tracks
->
p_next
;
}
libvlc_track_description_release
(
tracks
);
return
[
NSArray
arrayWithArray
:
tempArray
];
}
...
...
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