comparison libmpdemux/muxer_mpeg.c @ 17065:cf6bfdf41143

Clean up some muxer messages, patch by Corey Hickey bugfood-ml AT -fatooh/org- , small fixes by me
author reynaldo
date Tue, 29 Nov 2005 22:04:57 +0000
parents dd5be8f8d16d
children e84e5e9e9ef4
comparison
equal deleted inserted replaced
17064:a6ad13d29a70 17065:cf6bfdf41143
5 #include <sys/types.h> 5 #include <sys/types.h>
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "version.h" 8 #include "version.h"
9 #include "mp_msg.h" 9 #include "mp_msg.h"
10 #include "help_mp.h"
10 11
11 #include "bswap.h" 12 #include "bswap.h"
12 13
13 #include "aviheader.h" 14 #include "aviheader.h"
14 #include "ms_hdr.h" 15 #include "ms_hdr.h"
2553 { 2554 {
2554 int i, nf; 2555 int i, nf;
2555 double fake_timer; 2556 double fake_timer;
2556 muxer_priv_t *priv = (muxer_priv_t *) muxer->priv; 2557 muxer_priv_t *priv = (muxer_priv_t *) muxer->priv;
2557 2558
2559 mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingTrailer);
2560
2558 for(i = 0; i < muxer->avih.dwStreams; i++) 2561 for(i = 0; i < muxer->avih.dwStreams; i++)
2559 { 2562 {
2560 if(muxer->streams[i]->type == MUXER_TYPE_AUDIO) 2563 if(muxer->streams[i]->type == MUXER_TYPE_AUDIO)
2561 parse_audio(muxer->streams[i], 1, &nf, &fake_timer); 2564 parse_audio(muxer->streams[i], 1, &nf, &fake_timer);
2562 } 2565 }
2569 } 2572 }
2570 2573
2571 static void mpegfile_write_header(muxer_t *muxer) 2574 static void mpegfile_write_header(muxer_t *muxer)
2572 { 2575 {
2573 muxer_priv_t *priv = (muxer_priv_t*) muxer->priv; 2576 muxer_priv_t *priv = (muxer_priv_t*) muxer->priv;
2577
2578 mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingHeader);
2574 2579
2575 priv->headers_cnt++; 2580 priv->headers_cnt++;
2576 2581
2577 if((priv->is_genmpeg1 || priv->is_genmpeg2) && (priv->headers_cnt == muxer->avih.dwStreams)) 2582 if((priv->is_genmpeg1 || priv->is_genmpeg2) && (priv->headers_cnt == muxer->avih.dwStreams))
2578 { 2583 {