Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
d892a6b5
Commit
d892a6b5
authored
Apr 22, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: add support for the Video Title option (close #3557)
parent
269a40cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
NEWS
NEWS
+1
-0
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+10
-6
No files found.
NEWS
View file @
d892a6b5
...
...
@@ -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.
...
...
modules/gui/macosx/MainWindow.m
View file @
d892a6b5
...
...
@@ -623,11 +623,15 @@ static VLCMainWindow *_o_sharedInstance = nil;
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
));
...
...
@@ -660,7 +664,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
o_fspanel
setStreamTitle
:
aString
];
}
else
{
[
self
setTitle
:
_NS
(
"VLC media player"
)];
[
self
setTitle
:
_NS
(
"VLC media player"
)];
[
self
setRepresentedURL
:
nil
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment