[MPlayer-cvslog] r35349 - trunk/libmpdemux/demuxer.c

reimar subversion at mplayerhq.hu
Mon Nov 5 21:53:49 CET 2012


Author: reimar
Date: Mon Nov  5 21:53:49 2012
New Revision: 35349

Log:
Allow free_demuxer to handle a NULL argument.

Modified:
   trunk/libmpdemux/demuxer.c

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	Mon Nov  5 21:51:45 2012	(r35348)
+++ trunk/libmpdemux/demuxer.c	Mon Nov  5 21:53:49 2012	(r35349)
@@ -399,6 +399,8 @@ void free_sh_video(sh_video_t *sh)
 void free_demuxer(demuxer_t *demuxer)
 {
     int i;
+    if (!demuxer)
+        return;
     mp_msg(MSGT_DEMUXER, MSGL_DBG2, "DEMUXER: freeing %s demuxer at %p\n",
            demuxer->desc->shortdesc, demuxer);
     if (demuxer->desc->close)


More information about the MPlayer-cvslog mailing list