[xiph-commits] r3331 - libfishsound/branches/1.0-stable-flac/src/libfishsound

conrad at svn.annodex.net conrad at svn.annodex.net
Thu Jan 10 01:00:47 PST 2008


Author: conrad
Date: 2008-01-10 01:00:47 -0800 (Thu, 10 Jan 2008)
New Revision: 3331

Modified:
   libfishsound/branches/1.0-stable-flac/src/libfishsound/flac.c
Log:
wibble


Modified: libfishsound/branches/1.0-stable-flac/src/libfishsound/flac.c
===================================================================
--- libfishsound/branches/1.0-stable-flac/src/libfishsound/flac.c	2008-01-10 08:36:27 UTC (rev 3330)
+++ libfishsound/branches/1.0-stable-flac/src/libfishsound/flac.c	2008-01-10 09:00:47 UTC (rev 3331)
@@ -370,8 +370,12 @@
          fi->header_packets);
 #endif
 
-  if ((fi->fsd = FLAC__stream_decoder_new()) == NULL)
+  if ((fi->fsd = FLAC__stream_decoder_new()) == NULL) {
+#ifdef DEBUG
+    printf ("fs_flac_decode_header: unable to create new stream_decoder\n");
+#endif
     return NULL;
+  }
 
   FLAC__stream_decoder_set_read_callback(fi->fsd, fs_flac_read_callback);
   FLAC__stream_decoder_set_write_callback(fi->fsd, fs_flac_write_callback);
@@ -390,7 +394,7 @@
 {
   FishSoundFlacInfo *fi = fsound->codec_data;
 #ifdef DEBUG
-  printf("fs_flac_decode: IN\n");
+  printf("fs_flac_decode: IN, fi->packetno = %d\n", fi->packetno);
 #endif
   if (fi->packetno == 0) {
     if (fs_flac_decode_header (fsound, buf, bytes) == NULL) {
@@ -417,7 +421,7 @@
       FLAC__stream_decoder_process_until_end_of_metadata(fi->fsd);
       fs_free(fi->buffer);
     }
-    /*
+#if 0
   if (fi->packetno == 0) {
     if (process_header(fi, buf, bytes) == NULL) printf("EROROROROR\n");
     buf[13] |= 0x80;
@@ -433,7 +437,7 @@
     fi->buffer = buf;
     fi->bufferlength = bytes;
     FLAC__stream_decoder_process_until_end_of_metadata(fi->fsd);
-    */
+#endif
   } else {
     fi->buffer = buf;
     fi->bufferlength = bytes;



More information about the commits mailing list