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

Qt: fix SD search

Close #6368
parent 5a2390a7
......@@ -281,8 +281,8 @@ void PLSelector::setSource( QTreeWidgetItem *item )
return ;
services_discovery_descriptor_t *p_test = new services_discovery_descriptor_t;
playlist_ServicesDiscoveryControl( THEPL, qtu( qs ), SD_CMD_DESCRIPTOR, p_test );
if( p_test->i_capabilities & SD_CAP_SEARCH )
int i_ret = playlist_ServicesDiscoveryControl( THEPL, qtu( qs ), SD_CMD_DESCRIPTOR, p_test );
if( i_ret == VLC_SUCCESS && p_test->i_capabilities & SD_CAP_SEARCH )
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