Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
541b381c
Commit
541b381c
authored
May 06, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins: fix crash if input-title-format is empty
parent
8ecc026e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+9
-3
No files found.
modules/gui/skins2/src/vlcproc.cpp
View file @
541b381c
...
...
@@ -740,9 +740,15 @@ void VlcProc::update_current_input()
{
// Update short name (as defined by --input-title-format)
char
*
psz_fmt
=
var_InheritString
(
getIntf
(),
"input-title-format"
);
char
*
psz_name
=
str_format_meta
(
pInput
,
psz_fmt
);
SET_TEXT
(
m_cVarStreamName
,
UString
(
getIntf
(),
psz_name
)
);
free
(
psz_fmt
);
char
*
psz_name
=
NULL
;
if
(
psz_fmt
!=
NULL
)
{
psz_name
=
str_format_meta
(
pInput
,
psz_fmt
);
free
(
psz_fmt
);
}
SET_TEXT
(
m_cVarStreamName
,
UString
(
getIntf
(),
psz_name
?
psz_name
:
""
)
);
free
(
psz_name
);
// Update local path (if possible) or full uri
...
...
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