[vlc-devel] commit: dshow: use empty() instead of !size() (quicker). ( Rémi Duraffort )

git version control git at videolan.org
Tue Feb 2 09:34:42 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Feb  2 08:51:02 2010 +0100| [81693fe33732aa97bff9496a619942be082fe788] | committer: Rémi Duraffort 

dshow: use empty() instead of !size() (quicker).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81693fe33732aa97bff9496a619942be082fe788
---

 modules/access/dshow/dshow.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index 3210108..6736b50 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -1962,7 +1962,7 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
     /* Uninitialize OLE/COM */
     CoUninitialize();
 
-    if( !list_devices.size() ) return VLC_SUCCESS;
+    if( list_devices.empty() ) return VLC_SUCCESS;
 
     p_item->ppsz_list = (char**)xrealloc( p_item->ppsz_list,
                           (list_devices.size()+3) * sizeof(char *) );
@@ -2024,7 +2024,7 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
 
         /* Enumerate devices */
         FindCaptureDevice( p_this, NULL, &list_devices, b_audio );
-        if( !list_devices.size() )
+        if( list_devices.empty() )
         {
             CoUninitialize();
             return VLC_EGENERIC;




More information about the vlc-devel mailing list