* 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.
p_input = pl_CurrentInput(VLCIntf);
if (p_input) {
NSString *aString;
- 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);
+
+ 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));
[o_fspanel setStreamTitle: aString];
} else {
- [self setTitle: _NS("VLC media player")];
+ [self setTitle: _NS("VLC media player")];
[self setRepresentedURL: nil];
}