Selaa lähdekoodia

Stream output: fix longstanding compilation warnings

Felix Paul Kühne 9 vuotta sitten
vanhempi
commit
2d9112abb6
2 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa
  1. 6 0
      Sources/VLCStreamOutput.m
  2. 1 2
      Sources/VLCStreamSession.m

+ 6 - 0
Sources/VLCStreamOutput.m

@@ -34,6 +34,12 @@
 @end
 
 @implementation VLCStreamOutput
+
+- (instancetype)init
+{
+    return [self initWithOptionDictionary:nil];
+}
+
 - (instancetype)initWithOptionDictionary:(NSDictionary *)dictionary
 {
     if (self = [super init])

+ 1 - 2
Sources/VLCStreamSession.m

@@ -66,7 +66,7 @@
     [super stop];
 }
 
-- (BOOL)play
+- (void)play
 {
     NSString * libvlcArgs;
     if( self.drawable )
@@ -85,7 +85,6 @@
         [super setMedia: self.media];
     }
     [super play];
-    return YES;
 }
 
 + (NSSet *)keyPathsForValuesAffectingDescription