[vlc-devel] [PATCH 1/8] fix unsupported shortcut

Francois Cartegnie fcvlcdev at free.fr
Wed Apr 14 16:53:13 CEST 2010


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

diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index eecebe4..74d45a6 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -1197,7 +1197,10 @@ 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;
+            if ( p->psz_description != NULL )
+		e.psz_description = p->psz_description;
+            else
+		e.psz_description = psz_description;
             break;
         }
     }
-- 
1.6.3




More information about the vlc-devel mailing list