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
043553e7
Commit
043553e7
authored
Mar 13, 2012
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: Fix PLSelector when a discovery service fails to be created.
parent
a569b096
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+4
-3
No files found.
modules/gui/qt4/components/playlist/selector.cpp
View file @
043553e7
...
@@ -265,8 +265,6 @@ void PLSelector::setSource( QTreeWidgetItem *item )
...
@@ -265,8 +265,6 @@ void PLSelector::setSource( QTreeWidgetItem *item )
if
(
!
item
||
item
==
curItem
)
if
(
!
item
||
item
==
curItem
)
return
;
return
;
curItem
=
item
;
bool
b_ok
;
bool
b_ok
;
int
i_type
=
item
->
data
(
0
,
TYPE_ROLE
).
toInt
(
&
b_ok
);
int
i_type
=
item
->
data
(
0
,
TYPE_ROLE
).
toInt
(
&
b_ok
);
if
(
!
b_ok
||
i_type
==
CATEGORY_TYPE
)
if
(
!
b_ok
||
i_type
==
CATEGORY_TYPE
)
...
@@ -279,7 +277,8 @@ void PLSelector::setSource( QTreeWidgetItem *item )
...
@@ -279,7 +277,8 @@ void PLSelector::setSource( QTreeWidgetItem *item )
sd_loaded
=
playlist_IsServicesDiscoveryLoaded
(
THEPL
,
qtu
(
qs
)
);
sd_loaded
=
playlist_IsServicesDiscoveryLoaded
(
THEPL
,
qtu
(
qs
)
);
if
(
!
sd_loaded
)
if
(
!
sd_loaded
)
{
{
playlist_ServicesDiscoveryAdd
(
THEPL
,
qtu
(
qs
)
);
if
(
playlist_ServicesDiscoveryAdd
(
THEPL
,
qtu
(
qs
)
)
!=
VLC_SUCCESS
)
return
;
services_discovery_descriptor_t
*
p_test
=
new
services_discovery_descriptor_t
;
services_discovery_descriptor_t
*
p_test
=
new
services_discovery_descriptor_t
;
playlist_ServicesDiscoveryControl
(
THEPL
,
qtu
(
qs
),
SD_CMD_DESCRIPTOR
,
p_test
);
playlist_ServicesDiscoveryControl
(
THEPL
,
qtu
(
qs
),
SD_CMD_DESCRIPTOR
,
p_test
);
...
@@ -295,6 +294,8 @@ void PLSelector::setSource( QTreeWidgetItem *item )
...
@@ -295,6 +294,8 @@ void PLSelector::setSource( QTreeWidgetItem *item )
}
}
#endif
#endif
curItem
=
item
;
/* */
/* */
playlist_Lock
(
THEPL
);
playlist_Lock
(
THEPL
);
playlist_item_t
*
pl_item
=
NULL
;
playlist_item_t
*
pl_item
=
NULL
;
...
...
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