[vlc-devel] [PATCH 11/13] VLCKit: use nonatomic specifier for VLCMediaPlayer properties

Florent Pillet fpillet at gmail.com
Mon Jul 7 12:41:26 CEST 2014


---
 Headers/Public/VLCMediaPlayer.h | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/Headers/Public/VLCMediaPlayer.h b/Headers/Public/VLCMediaPlayer.h
index 29b3ee3..db15b6e 100644
--- a/Headers/Public/VLCMediaPlayer.h
+++ b/Headers/Public/VLCMediaPlayer.h
@@ -92,7 +92,7 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
 // TODO: Should we use medialist_player or our own flavor of media player?
 @interface VLCMediaPlayer : NSObject
 
- at property (readonly) VLCLibrary *libraryInstance;
+ at property (nonatomic, readonly) VLCLibrary *libraryInstance;
 
 #if !TARGET_OS_IPHONE
 /* Initializers */
@@ -147,7 +147,7 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  *
  * \param relative scale factor as float
  */
- at property (readwrite) float scaleFactor;
+ at property (nonatomic) float scaleFactor;
 
 /**
  * Take a snapshot of the current video.
@@ -173,37 +173,37 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  *
  * \param bool value
  */
- at property BOOL adjustFilterEnabled;
+ at property (nonatomic) BOOL adjustFilterEnabled;
 /**
  * Set/Get the adjust filter's contrast value
  *
  * \param float value (range: 0-2, default: 1.0)
  */
- at property float contrast;
+ at property (nonatomic) float contrast;
 /**
  * Set/Get the adjust filter's brightness value
  *
  * \param float value (range: 0-2, default: 1.0)
  */
- at property float brightness;
+ at property (nonatomic)  float brightness;
 /**
  * Set/Get the adjust filter's hue value
  *
  * \param integer value (range: 0-360, default: 0)
  */
- at property int hue;
+ at property (nonatomic)  int hue;
 /**
  * Set/Get the adjust filter's saturation value
  *
  * \param float value (range: 0-3, default: 1.0)
  */
- at property float saturation;
+ at property (nonatomic)  float saturation;
 /**
  * Set/Get the adjust filter's gamma value
  *
  * \param float value (range: 0-10, default: 1.0)
  */
- at property float gamma;
+ at property (nonatomic)  float gamma;
 
 /**
  * Get the requested movie play rate.
@@ -214,9 +214,9 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  *
  * \return movie play rate
  */
- at property float rate;
+ at property (nonatomic)  float rate;
 
- at property (weak, readonly) VLCAudio * audio;
+ at property (nonatomic, readonly, weak) VLCAudio * audio;
 
 /* Video Information */
 /**
@@ -224,6 +224,7 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  * \return video size as CGSize
  */
 - (CGSize)videoSize;
+
 /**
  * Does the current media have a video output?
  * \note a false return value doesn't mean that the video doesn't have any video
@@ -231,6 +232,7 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  * \return current video output status
  */
 - (BOOL)hasVideoOut;
+
 /**
  * Frames per second
  * \return current media's frames per second value
@@ -252,7 +254,7 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  */
 - (VLCTime *)time;
 
- at property (weak, readonly) VLCTime *remainingTime;
+ at property (nonatomic, readonly, weak) VLCTime *remainingTime;
 
 /**
  * Frames per second
-- 
1.8.5.2 (Apple Git-48)




More information about the vlc-devel mailing list