Commit d892a6b5 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: add support for the Video Title option (close #3557)

parent 269a40cb
......@@ -163,6 +163,7 @@ OS X Interface:
* add a UI to the preferences dialog to configure the default application
handler for ftp, mms, rtmp, rtp, rtsp, sftp, smb and udp streams
(system-wide settings)
* add support for the Video Title option
* The Streaming/Transcoding wizard and the open dialog's output panel are
deprecated now and will be removed in a future release.
......
......@@ -623,11 +623,15 @@ static VLCMainWindow *_o_sharedInstance = nil;
p_input = pl_CurrentInput(VLCIntf);
if (p_input) {
NSString *aString;
if (!config_GetPsz(VLCIntf, "video-title")) {
char *format = var_InheritString(VLCIntf, "input-title-format");
char *formated = str_format_meta(pl_Get(VLCIntf), format);
free(format);
aString = [NSString stringWithUTF8String:formated];
free(formated);
} else
aString = [NSString stringWithUTF8String:config_GetPsz(VLCIntf, "video-title")];
char *uri = input_item_GetURI(input_GetItem(p_input));
......
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