Commit 24657112 authored by hovis's avatar hovis
Browse files

Cosmetic - changed negative test.

parent 6b8e5d9b
......@@ -2454,7 +2454,7 @@ static int OpenAudioDevOss( vlc_object_t *p_this, demux_sys_t *p_sys,
int i_fd = 0;
int i_format;
/* OSS */
char* psz_oss_device_name = strdup( ( !p_sys->psz_adev ) ? OSS_DEFAULT : p_sys->psz_adev );
char* psz_oss_device_name = strdup( p_sys->psz_adev ? p_sys->psz_adev : OSS_DEFAULT );
if( (i_fd = open( psz_oss_device_name, O_RDONLY | O_NONBLOCK )) < 0 )
{
......@@ -2894,7 +2894,7 @@ static vlc_bool_t ProbeAudioDevOss( vlc_object_t *p_this, demux_sys_t *p_sys,
{
int i_fd = 0;
int i_caps;
char* psz_oss_device_name = strdup( ( !psz_device ) ? OSS_DEFAULT : psz_device );
char* psz_oss_device_name = strdup( psz_device ? psz_device : OSS_DEFAULT );
if( ( i_fd = open( psz_oss_device_name, O_RDONLY | O_NONBLOCK ) ) < 0 )
{
......
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