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
2e90c6e8
Commit
2e90c6e8
authored
Mar 01, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix file name representation of the video output window on Mac OS X. (Reviewed by hartman)
parent
13ec5754
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+16
-8
No files found.
modules/gui/macosx/vout.m
View file @
2e90c6e8
...
...
@@ -284,16 +284,24 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if
(
o_mrl
!=
nil
)
{
/* FIXME once psz_access is exported, since that syntax is no longer valid */
#if 0
if( p_input->input.p_access && !strcmp( p_input->input.p_access->p_module->psz_shortname, "File" ) )
{
NSRange prefix_range = [o_mrl rangeOfString: @"file:"];
if( prefix_range.location != NSNotFound )
[o_mrl deleteCharactersInRange: prefix_range];
/* FIXME once psz_access is exported, we could check if we are
* reading from a file in a smarter way. */
NSRange
prefix_range
=
[
o_mrl
rangeOfString
:
@"file:"
];
if
(
prefix_range
.
location
!=
NSNotFound
)
[
o_mrl
deleteCharactersInRange
:
prefix_range
];
if
(
[
o_mrl
characterAtIndex
:
0
]
==
'/'
)
{
/* it's a local file */
[
o_window
setRepresentedFilename
:
o_mrl
];
}
#endif
else
{
/* it's from the network or somewhere else,
* we clear the previous path */
[
o_window
setRepresentedFilename
:
@""
];
}
[
o_window
setTitle
:
o_title
];
}
else
...
...
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