changeset 35255:c93bf3f1540b

Allow free_demuxer to handle a NULL argument.
author reimar
date Mon, 05 Nov 2012 20:53:49 +0000
parents 3828cde710a2
children 4ca7b3dfb574
files libmpdemux/demuxer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Mon Nov 05 20:51:45 2012 +0000
+++ b/libmpdemux/demuxer.c	Mon Nov 05 20:53:49 2012 +0000
@@ -399,6 +399,8 @@
 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)