changeset 431:c106cb97db06

dirty workaround for video-only files...
author arpi_esp
date Sun, 15 Apr 2001 13:57:06 +0000
parents 2ed825f69e25
children 5251b0c57e39
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Apr 15 11:48:21 2001 +0000
+++ b/mplayer.c	Sun Apr 15 13:57:06 2001 +0000
@@ -1170,9 +1170,10 @@
   if(verbose) printf("Freeing %d unused audio chunks\n",d_audio->packs);
   ds_free_packs(d_audio); // free buffered chunks
   d_audio->id=-2;         // do not read audio chunks
-  if(sh_audio->a_buffer) free(sh_audio->a_buffer);
+  if(sh_audio) if(sh_audio->a_buffer) free(sh_audio->a_buffer);
   alsa=1;
   // fake, required for timer:
+  sh_audio=new_sh_audio(255); // FIXME!!!!!!!!!!
   sh_audio->samplerate=76800;
   sh_audio->samplesize=sh_audio->channels=2;
   sh_audio->o_bps=sh_audio->channels*sh_audio->samplerate*sh_audio->samplesize;