[vlc-devel] [PATCH] VLCKit: Use a string literal instead of a format string with no arguments.
Brendon Justin
brendonjustin at gmail.com
Wed Aug 15 00:25:12 CEST 2012
Fixes a compiler warning.
---
Sources/VLCStreamOutput.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Sources/VLCStreamOutput.m b/Sources/VLCStreamOutput.m
index 49bfc61..7e667ab 100644
--- a/Sources/VLCStreamOutput.m
+++ b/Sources/VLCStreamOutput.m
@@ -179,7 +179,7 @@
if( audioCodec ) [subOptions addObject:[NSString stringWithFormat:@"acodec=%@", audioCodec]];
if( audioBitrate ) [subOptions addObject:[NSString stringWithFormat:@"ab=%@", audioBitrate]];
if( channels ) [subOptions addObject:[NSString stringWithFormat:@"channels=%@", channels]];
- if( audioSync ) [subOptions addObject:[NSString stringWithFormat:@"audioSync", width]];
+ if( audioSync ) [subOptions addObject:@"audioSync"];
if( subtitleCodec ) [subOptions addObject:[NSString stringWithFormat:@"scodec=%@", subtitleCodec]];
if( subtitleEncoder ) [subOptions addObject:[NSString stringWithFormat:@"senc=%@", subtitleEncoder]];
if( subtitleOverlay ) [subOptions addObject:@"soverlay"];
--
1.7.9.6 (Apple Git-31.1)
More information about the vlc-devel
mailing list