[vlc-devel] commit: Cosmetic - changed negative test. (Richard Hosking )

git version control git at videolan.org
Sat Mar 15 18:01:23 CET 2008


vlc | branch: master | Richard Hosking <richard at hovis.net> | Sat Mar 15 16:55:28 2008 +0000| [24657112e5f2532b48d25416b46eb2212b01f089]

Cosmetic - changed negative test.

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

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

diff --git a/modules/access/v4l2/v4l2.c b/modules/access/v4l2/v4l2.c
index 9b94a7e..a8dc4bf 100644
--- a/modules/access/v4l2/v4l2.c
+++ b/modules/access/v4l2/v4l2.c
@@ -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 )
     {




More information about the vlc-devel mailing list