[MPlayer-cvslog] r35342 - trunk/libaf/af.c

reimar subversion at mplayerhq.hu
Mon Nov 5 21:14:20 CET 2012


Author: reimar
Date: Mon Nov  5 21:14:20 2012
New Revision: 35342

Log:
Simplify.

Modified:
   trunk/libaf/af.c

Modified: trunk/libaf/af.c
==============================================================================
--- trunk/libaf/af.c	Mon Nov  5 21:11:34 2012	(r35341)
+++ trunk/libaf/af.c	Mon Nov  5 21:14:20 2012	(r35342)
@@ -257,12 +257,8 @@ int af_reinit(af_stream_t* s, af_instanc
     int rv=0; // Return value
 
     // Check if there are any filters left in the list
-    if(NULL == af){
-      if(!(af=af_append(s,s->first,"dummy")))
-	return AF_UNKNOWN;
-      else
-	return AF_ERROR;
-    }
+    if(!af)
+      return af_append(s,s->first,"dummy") ? AF_ERROR : AF_UNKNOWN;
 
     // Check if this is the first filter
     if(!af->prev)


More information about the MPlayer-cvslog mailing list