changeset 36577:5fed1c3bfd39

print_file_info: Do not assume we have a demuxer.
author reimar
date Mon, 20 Jan 2014 22:08:42 +0000
parents fb65d6e1a9b2
children dd4ceae6520a
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Jan 20 22:08:41 2014 +0000
+++ b/mplayer.c	Mon Jan 20 22:08:42 2014 +0000
@@ -514,7 +514,7 @@
     double video_start_pts = MP_NOPTS_VALUE;
     mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_FILENAME=%s\n",
            filename_recode(filename));
-    mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_DEMUXER=%s\n", mpctx->demuxer->desc->name);
+    mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_DEMUXER=%s\n", mpctx->demuxer ? mpctx->demuxer->desc->name : "none");
     if (mpctx->sh_video) {
         /* Assume FOURCC if all bytes >= 0x20 (' ') */
         if (mpctx->sh_video->format >= 0x20202020)