[vlc-devel] [PATCH] finxing small typo, would cause issues with fileURLs

Stefan Schmidt-Bilkenroth ssb at mac.com
Sat Jan 16 16:17:47 CET 2016


 Sources/VLCMedia.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Sources/VLCMedia.m b/Sources/VLCMedia.m
index a8c0917..f46b898 100644
--- a/Sources/VLCMedia.m
+++ b/Sources/VLCMedia.m
@@ -836,7 +836,7 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
 
     _url = [NSURL URLWithString:urlString];
     if (!_url) /* Attempt to interpret as a file path then */ {
-         _url = [NSURL fileURLWithPath:_url];
+         _url = [NSURL fileURLWithPath:urlString];
          if(!_url) {
              free(p_url);
              return;



More information about the vlc-devel mailing list