[vlc-devel] [PATCH 2/2] fix unsupported compact ifelse syntax

Francois Cartegnie fcvlcdev at free.fr
Thu Apr 15 21:57:28 CEST 2010


---
 src/misc/fourcc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index eecebe4..5ad47f6 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -1197,7 +1197,8 @@ static entry_t Lookup( const entry_t p_list[], vlc_fourcc_t i_fourcc )
 
             memcpy( e.p_class, p_class, 4 );
             memcpy( e.p_fourcc, p->p_fourcc, 4 );
-            e.psz_description = p->psz_description ?: psz_description;
+            e.psz_description = p->psz_description ?
+                                p->psz_description : psz_description;
             break;
         }
     }
-- 
1.6.4.4




More information about the vlc-devel mailing list