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
eda1f5fe
Commit
eda1f5fe
authored
Sep 22, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: info panels: fix NULL dereference (#5368 fix).
parent
4998d377
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.cpp
+2
-2
modules/gui/qt4/components/info_panels.hpp
modules/gui/qt4/components/info_panels.hpp
+1
-1
No files found.
modules/gui/qt4/components/info_panels.cpp
View file @
eda1f5fe
...
@@ -236,9 +236,9 @@ void MetaPanel::update( input_item_t *p_item )
...
@@ -236,9 +236,9 @@ void MetaPanel::update( input_item_t *p_item )
/* URL */
/* URL */
psz_meta
=
input_item_GetURL
(
p_item
);
psz_meta
=
input_item_GetURL
(
p_item
);
if
(
!
EMPTY_STR
(
psz_meta
)
&&
strcmp
(
psz_meta
,
currentURL
)
)
if
(
!
EMPTY_STR
(
psz_meta
)
&&
currentURL
!=
psz_meta
)
{
{
free
(
currentURL
);
currentURL
=
strdup
(
psz_meta
)
;
currentURL
=
psz_meta
;
lblURL
->
setText
(
"<a href='"
+
qfu
(
psz_meta
)
+
"'>"
+
lblURL
->
setText
(
"<a href='"
+
qfu
(
psz_meta
)
+
"'>"
+
qfu
(
psz_meta
).
remove
(
QRegExp
(
".*://"
)
)
+
"</a>"
);
qfu
(
psz_meta
).
remove
(
QRegExp
(
".*://"
)
)
+
"</a>"
);
...
...
modules/gui/qt4/components/info_panels.hpp
View file @
eda1f5fe
...
@@ -86,7 +86,7 @@ private:
...
@@ -86,7 +86,7 @@ private:
CoverArtLabel
*
art_cover
;
CoverArtLabel
*
art_cover
;
QLabel
*
lblURL
;
QLabel
*
lblURL
;
char
*
currentURL
;
QString
currentURL
;
public
slots
:
public
slots
:
void
update
(
input_item_t
*
);
void
update
(
input_item_t
*
);
...
...
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