Commit 37fbdd89 authored by Rémi Duraffort's avatar Rémi Duraffort

Use empty() when applicable.

parent dcd8b628
......@@ -1015,7 +1015,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys,
/* Enumerate devices and display their names */
FindCaptureDevice( p_this, NULL, &list_devices, b_audio );
if( !list_devices.size() )
if( list_devices.empty() )
return VLC_EGENERIC;
list<string>::iterator iter;
......
......@@ -260,7 +260,7 @@ HRESULT CapturePin::CustomGetSample( VLCMediaSample *vlc_sample )
msg_Dbg( p_input, "CapturePin::CustomGetSample" );
#endif
if( samples_queue.size() )
if( !samples_queue.empty() )
{
*vlc_sample = samples_queue.back();
samples_queue.pop_back();
......@@ -592,7 +592,7 @@ STDMETHODIMP CapturePin::EndFlush( void )
VLCMediaSample vlc_sample;
vlc_mutex_lock( &p_sys->lock );
while( samples_queue.size() )
while( !samples_queue.empty() )
{
vlc_sample = samples_queue.back();
samples_queue.pop_back();
......
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