Commit d87f79fa authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix SD search

Close #6368
(cherry picked from commit f33816a822905117534229be1d41b1b2bd98a59e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent aa1ea082
...@@ -281,8 +281,8 @@ void PLSelector::setSource( QTreeWidgetItem *item ) ...@@ -281,8 +281,8 @@ void PLSelector::setSource( QTreeWidgetItem *item )
return ; 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 ); int i_ret = playlist_ServicesDiscoveryControl( THEPL, qtu( qs ), SD_CMD_DESCRIPTOR, p_test );
if( p_test->i_capabilities & SD_CAP_SEARCH ) if( i_ret == VLC_SUCCESS && p_test->i_capabilities & SD_CAP_SEARCH )
item->setData( 0, CAP_SEARCH_ROLE, true ); item->setData( 0, CAP_SEARCH_ROLE, true );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment