Changeset 25445

Show
Ignore:
Timestamp:
05/10/08 21:44:39 (5 days ago)
Author:
dlmcpaul
Message:
change printf to TRACE.  Turn off TRACEing
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/src/add-ons/media/plugins/mp4_reader/mp4_reader.cpp

    r25340 r25445  
    3939 
    4040 
    41 #define TRACE_MP4_READER 
     41//#define TRACE_MP4_READER 
    4242#ifdef TRACE_MP4_READER 
    4343#       define TRACE printf 
     
    309309                                        format->u.encoded_audio.bit_rate = audio_format->BitRate;       // usually 128000 for AAC 
    310310 
    311                                         printf("Audio NoOfChannels %d, SampleSize %d, SampleRate %f, FrameSize %ld\n",audio_format->NoOfChannels, audio_format->SampleSize, audio_format->SampleRate, audio_format->FrameSize); 
    312  
    313                                         printf("Audio frame_rate %f, channel_count %ld, format %ld, buffer_size %ld, frame_size %ld, bit_rate %f\n", 
     311                                        TRACE("Audio NoOfChannels %d, SampleSize %d, SampleRate %f, FrameSize %ld\n",audio_format->NoOfChannels, audio_format->SampleSize, audio_format->SampleRate, audio_format->FrameSize); 
     312 
     313                                        TRACE("Audio frame_rate %f, channel_count %ld, format %ld, buffer_size %ld, frame_size %ld, bit_rate %f\n", 
    314314                                                format->u.encoded_audio.output.frame_rate, format->u.encoded_audio.output.channel_count, format->u.encoded_audio.output.format,format->u.encoded_audio.output.buffer_size, format->u.encoded_audio.frame_size, format->u.encoded_audio.bit_rate); 
    315315 
    316                                         printf("Track %d MP4 Audio FrameCount %ld\n",cookie->stream,theFileReader->getFrameCount(cookie->stream)); 
     316                                        TRACE("Track %d MP4 Audio FrameCount %ld\n",cookie->stream,theFileReader->getFrameCount(cookie->stream)); 
    317317                         
    318318                                        break; 
     
    342342                if (size > 0) { 
    343343                        if (format->SetMetaData(data, size) != B_OK) { 
    344                                 printf("Failed to set Decoder Config\n"); 
     344                                ERROR("Failed to set Decoder Config\n"); 
     345                                delete cookie; 
     346                                return B_ERROR; 
    345347                        } 
    346348                } 
     
    456458                        TRACE("Decoder Config Found Size is %ld\n",size); 
    457459                        if (format->SetMetaData(data, size) != B_OK) { 
    458                                 printf("Failed to set Decoder Config\n"); 
     460                                ERROR("Failed to set Decoder Config\n"); 
     461                                delete cookie; 
     462                                return B_ERROR; 
    459463                        } 
    460464