[MPlayer-cvslog] r35630 - trunk/gui/ui/render.c

ib subversion at mplayerhq.hu
Sun Dec 9 13:23:57 CET 2012


Author: ib
Date: Sun Dec  9 13:23:56 2012
New Revision: 35630

Log:
Check availability of mixer before rendering.

Modified:
   trunk/gui/ui/render.c

Modified: trunk/gui/ui/render.c
==============================================================================
--- trunk/gui/ui/render.c	Sun Dec  9 13:16:14 2012	(r35629)
+++ trunk/gui/ui/render.c	Sun Dec  9 13:23:56 2012	(r35630)
@@ -43,7 +43,7 @@ static char *Translate(char *str)
     char tmp[512];
     unsigned int i, c;
     int t;
-    mixer_t *mixer;
+    mixer_t *mixer = NULL;
 
     *trbuf = 0;
 
@@ -170,9 +170,10 @@ calclengthmmmmss:
 
             case 'a':
 
+                if (guiInfo.mpcontext)
                 mixer = mpctx_get_mixer(guiInfo.mpcontext);
 
-                if (mixer->muted) {
+                if (mixer && mixer->muted) {
                     av_strlcat(trbuf, "n", sizeof(trbuf));
                     break;
                 }


More information about the MPlayer-cvslog mailing list