Commit 9a25af90 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

VLCMedia: fix macOS compilation

parent 8542641e
......@@ -514,6 +514,7 @@ typedef int VLCMediaParsingOptions;
*
* \note must be called before the first call of play() to
* take effect. The cookie storage is only used for http/https.
* \warning This method will never succeed on macOS, but requires iOS or tvOS
*
* \param cookie header field value of Set-Cookie: "name=value<;attributes>"
* \param host host to which the cookie will be sent
......@@ -530,6 +531,7 @@ typedef int VLCMediaParsingOptions;
*
* \note must be called before the first call of play() to
* take effect. The cookie jar is only used for http/https.
* \warning This method will never succeed on macOS, but requires iOS or tvOS
*/
- (void)clearStoredCookies;
......
......@@ -404,11 +404,14 @@ static void HandleMediaParsedChanged(const libvlc_event_t * event, void * self)
if (!p_md || cookie == NULL || host == NULL || path == NULL) {
return -1;
}
#if TARGET_OS_IPHONE
return libvlc_media_cookie_jar_store(p_md,
[cookie UTF8String],
[host UTF8String],
[path UTF8String]);
#else
return -1;
#endif
}
- (void)clearStoredCookies
......@@ -417,7 +420,9 @@ static void HandleMediaParsedChanged(const libvlc_event_t * event, void * self)
return;
}
#if TARGET_OS_IPHONE
libvlc_media_cookie_jar_clear(p_md);
#endif
}
- (NSDictionary *)stats
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment