[MPlayer-cvslog] r20182 - trunk/libmpdemux/demux_mkv.c

reimar subversion at mplayerhq.hu
Thu Oct 12 19:21:16 CEST 2006


Author: reimar
Date: Thu Oct 12 19:21:15 2006
New Revision: 20182

Modified:
   trunk/libmpdemux/demux_mkv.c

Log:
Cosmetics


Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	(original)
+++ trunk/libmpdemux/demux_mkv.c	Thu Oct 12 19:21:15 2006
@@ -3936,9 +3936,8 @@
 {
   mkv_demuxer_t *mkv_d = (mkv_demuxer_t *) demuxer->priv;
   mkv_track_t *track = demux_mkv_find_track_by_num (mkv_d, track_num, MATROSKA_TRACK_SUBTITLE);
-          if ((track->language != NULL) &&
-              strcmp(track->language, "und"))
-            strlcpy(lang, track->language, maxlen);
+  if (track->language && strcmp(track->language, "und"))
+    strlcpy(lang, track->language, maxlen);
 }
 
 /** \brief Get the language code for an audio track.
@@ -3957,8 +3956,7 @@
 {
   mkv_demuxer_t *mkv_d = (mkv_demuxer_t *) demuxer->priv;
   mkv_track_t *track = demux_mkv_find_track_by_num (mkv_d, track_num, MATROSKA_TRACK_AUDIO);
-  if ((track->language != NULL) &&
-      strcmp(track->language, "und"))
+  if (track->language && strcmp(track->language, "und"))
     strlcpy(lang, track->language, maxlen);
 }
 



More information about the MPlayer-cvslog mailing list