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
3780ceba
Commit
3780ceba
authored
Feb 15, 2010
by
Emmanuel de Roux
Committed by
Pierre d'Herbemont
Feb 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework : added method setValue:forMeta: to VLCMedia
Signed-off-by:
Pierre d'Herbemont
<
pdherbemont@free.fr
>
parent
14083ca0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
projects/macosx/framework/Headers/Public/VLCMedia.h
projects/macosx/framework/Headers/Public/VLCMedia.h
+6
-0
projects/macosx/framework/Sources/VLCMedia.m
projects/macosx/framework/Sources/VLCMedia.m
+7
-0
No files found.
projects/macosx/framework/Headers/Public/VLCMedia.h
View file @
3780ceba
...
...
@@ -224,4 +224,10 @@ typedef enum VLCMediaState
* The receiver's state, such as Playing, Error, NothingSpecial, Buffering.
*/
@property
(
readonly
)
VLCMediaState
state
;
/**
* Sets a value of the metaDictionary
*/
-
(
void
)
setValue
:(
id
)
value
forMeta
:(
NSString
*
)
VLCMetaInformation
;
@end
projects/macosx/framework/Sources/VLCMedia.m
View file @
3780ceba
...
...
@@ -211,6 +211,13 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
return
self
;
}
-
(
void
)
setValue
:(
NSString
*
)
value
forMeta
:(
NSString
*
)
meta
{
libvlc_meta_t
metaName
=
[
VLCMedia
stringToMetaType
:
meta
];
NSAssert
(
metaName
>=
0
,
@"Invalid meta"
);
libvlc_media_set_meta
(
p_md
,
metaName
,
[
value
UTF8String
]);
}
-
(
void
)
release
{
@synchronized
(
self
)
...
...
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