Commit 0668d607 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCMedia.m: Fix previous commit's warnings.

parent be3f7560
...@@ -52,6 +52,13 @@ NSString * VLCMetaInformationTrackID = @"trackID"; ...@@ -52,6 +52,13 @@ NSString * VLCMetaInformationTrackID = @"trackID";
/* Notification Messages */ /* Notification Messages */
NSString * VLCMediaMetaChanged = @"VLCMediaMetaChanged"; NSString * VLCMediaMetaChanged = @"VLCMediaMetaChanged";
/******************************************************************************
* @property (readwrite)
*/
@interface VLCMedia ()
@property (readwrite) VLCMediaState state;
@end
/****************************************************************************** /******************************************************************************
* Interface (Private) * Interface (Private)
*/ */
...@@ -504,6 +511,11 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self) ...@@ -504,6 +511,11 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
[self didChangeValueForKey:@"subitems"]; [self didChangeValueForKey:@"subitems"];
libvlc_media_list_release( p_mlist ); libvlc_media_list_release( p_mlist );
} }
- (void)setStateAsNumber:(NSNumber *)newStateAsNumber
{
[self setState: [newStateAsNumber intValue]];
}
@end @end
/****************************************************************************** /******************************************************************************
...@@ -521,14 +533,4 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self) ...@@ -521,14 +533,4 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
length = value ? [value retain] : nil; length = value ? [value retain] : nil;
} }
- (void)setStateAsNumber:(NSNumber *)newStateAsNumber
{
[self setState: [newStateAsNumber intValue]];
}
- (void)setState:(VLCMediaState)newState
{
state = newState;
}
@end @end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment