Commit 81693fe3 authored by Rémi Duraffort's avatar Rémi Duraffort

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

parent 33b0e8df
......@@ -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;
......
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