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
618e9dd9
Commit
618e9dd9
authored
May 06, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: fix crash if input-title-format is empty
(cherry picked from commit 8ecc026e2094a59cc96be3b507d6eae10849cc24)
parent
cbe61dbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+11
-4
No files found.
modules/gui/qt4/input_manager.cpp
View file @
618e9dd9
...
@@ -512,10 +512,17 @@ void InputManager::UpdateName()
...
@@ -512,10 +512,17 @@ void InputManager::UpdateName()
/* Try to get the nowplaying */
/* Try to get the nowplaying */
char
*
format
=
var_InheritString
(
p_intf
,
"input-title-format"
);
char
*
format
=
var_InheritString
(
p_intf
,
"input-title-format"
);
char
*
formated
=
str_format_meta
(
p_input
,
format
);
char
*
formatted
=
NULL
;
if
(
format
!=
NULL
)
{
formatted
=
str_format_meta
(
p_input
,
format
);
free
(
format
);
free
(
format
);
name
=
qfu
(
formated
);
if
(
formatted
!=
NULL
)
free
(
formated
);
{
name
=
qfu
(
formatted
);
free
(
formatted
);
}
}
/* If we have Nothing */
/* If we have Nothing */
if
(
name
.
simplified
().
isEmpty
()
)
if
(
name
.
simplified
().
isEmpty
()
)
...
...
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