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
1af1638e
Commit
1af1638e
authored
Jul 12, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Simplify the title update code.
parent
aebbc1e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
19 deletions
+15
-19
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+15
-19
No files found.
modules/gui/macosx/vout.m
View file @
1af1638e
...
...
@@ -274,35 +274,31 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
NSString
*
o_title
=
nil
;
NSMutableString
*
o_mrl
=
nil
;
input_thread_t
*
p_input
;
char
*
psz_title
;
if
(
p_vout
==
NULL
)
{
return
;
}
if
(
!
p_vout
)
return
;
p_input
=
vlc_object_find
(
p_vout
,
VLC_OBJECT_INPUT
,
FIND_PARENT
);
if
(
p_input
==
NULL
)
{
return
;
}
if
(
!
p_input
)
return
;
input_item_t
*
p_item
=
input_GetItem
(
p_input
);
psz_title
=
input_item_GetNowPlaying
(
p_item
);
if
(
!
psz_title
)
psz_title
=
input_item_GetName
(
p_item
);
char
*
psz_nowPlaying
=
input_item_GetNowPlaying
(
input_GetItem
(
p_input
)
);
char
*
psz_name
=
input_item_GetName
(
input_GetItem
(
p_input
)
);
char
*
psz_uri
=
input_item_GetURI
(
input_GetItem
(
p_input
)
);
if
(
psz_nowPlaying
!=
NULL
)
o_title
=
[
NSString
stringWithUTF8String
:
psz_nowPlaying
];
else
if
(
psz_name
!=
NULL
)
o_title
=
[
NSString
stringWithUTF8String
:
psz_name
];
if
(
psz_title
)
o_title
=
[
NSString
stringWithUTF8String
:
psz_title
];
if
(
psz_uri
!=
NULL
)
char
*
psz_uri
=
input_item_GetURI
(
p_item
);
if
(
psz_uri
)
o_mrl
=
[
NSMutableString
stringWithUTF8String
:
psz_uri
];
free
(
psz_nowPlaying
);
free
(
psz_name
);
free
(
psz_title
);
free
(
psz_uri
);
if
(
o_title
==
nil
)
if
(
!
o_title
)
o_title
=
o_mrl
;
if
(
o_mrl
!=
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