[vlc-commits] Qt: fix SD search
Jean-Baptiste Kempf
git at videolan.org
Sat Mar 31 23:59:06 CEST 2012
vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Mar 31 22:35:39 2012 +0200| [d87f79fab65ce6b994309a729766e3da80131d98] | committer: Jean-Baptiste Kempf
Qt: fix SD search
Close #6368
(cherry picked from commit f33816a822905117534229be1d41b1b2bd98a59e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=d87f79fab65ce6b994309a729766e3da80131d98
---
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