[MPlayer-users] mplayer -identlfy failure

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Dec 20 00:16:30 CET 2010


On Sun, Dec 19, 2010 at 08:00:09PM +0100, Sebastien Fievet wrote:
> libdvdread: Can't allocate memory for file read!

There we have it.
If you add this:
Index: libdvdread4/dvd_reader.c
===================================================================
--- libdvdread4/dvd_reader.c    (revision 1219)
+++ libdvdread4/dvd_reader.c    (working copy)
@@ -32,6 +32,7 @@
 #include <unistd.h>
 #include <limits.h>
 #include <dirent.h>
+#include <assert.h>
 
 /* misc win32 helpers */
 #ifdef WIN32
@@ -1291,6 +1292,7 @@
   if( !secbuf_base ) {
     fprintf( stderr, "libdvdread: Can't allocate memory "
              "for file read!\n" );
+assert(0);
     return 0;
   }
 

it should drop you into gdb instead of just printing this,
and the bt command should then give a good idea of what
is going on.


More information about the MPlayer-users mailing list