[vlc-commits] Qt: fix SD search
Jean-Baptiste Kempf
git at videolan.org
Sat Mar 31 23:35:42 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Mar 31 22:35:39 2012 +0200| [f33816a822905117534229be1d41b1b2bd98a59e] | committer: Jean-Baptiste Kempf
Qt: fix SD search
Close #6368
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f33816a822905117534229be1d41b1b2bd98a59e
---
modules/gui/qt4/components/playlist/selector.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index b78e9cb..114cc37 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -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 );
}
}
More information about the vlc-commits
mailing list