[vlc-devel] [PATCH 2/5] VLCKit: use nonatomic specifier for VLCMediaPlayer properties

Florent Pillet fpillet at gmail.com
Mon Jul 7 20:47:04 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 8651c38..8b4344c 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;
 @property (weak) id<VLCMediaPlayerDelegate> delegate;
 
 #if !TARGET_OS_IPHONE
@@ -144,7 +144,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.
@@ -170,37 +170,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.
@@ -211,9 +211,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 */
 /**
@@ -221,6 +221,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
@@ -228,6 +229,7 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  * \return current video output status
  */
 - (BOOL)hasVideoOut;
+
 /**
  * Frames per second
  * \return current media's frames per second value
@@ -249,7 +251,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