From 7958ce62d6ae127ee9b8664c8afae5754063389f Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Fri, 5 Dec 2003 15:54:56 +0000 Subject: cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued... CVS patchset: 5844 CVS date: 2003/12/05 15:54:56 --- src/demuxers/demux_mng.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/demuxers/demux_mng.c') diff --git a/src/demuxers/demux_mng.c b/src/demuxers/demux_mng.c index 222d42477..f94babc8b 100644 --- a/src/demuxers/demux_mng.c +++ b/src/demuxers/demux_mng.c @@ -19,7 +19,7 @@ */ /* - * $Id: demux_mng.c,v 1.16 2003/11/26 19:43:30 f1rmb Exp $ + * $Id: demux_mng.c,v 1.17 2003/12/05 15:54:57 f1rmb Exp $ * * demux_mng.c, Demuxer plugin for Multiple-image Network Graphics format * @@ -76,7 +76,7 @@ static void mymng_free(mng_ptr p, mng_uint32 size){ free(p); } -mng_bool mymng_open_stream(mng_handle mngh){ +static mng_bool mymng_open_stream(mng_handle mngh){ demux_mng_t *this = (demux_mng_t*)mng_get_userdata(mngh); if (this->input->get_current_pos(this->input) != 0) { @@ -89,7 +89,7 @@ mng_bool mymng_open_stream(mng_handle mngh){ return MNG_TRUE; } -mng_bool mymng_close_stream(mng_handle mngh){ +static mng_bool mymng_close_stream(mng_handle mngh){ demux_mng_t *this = (demux_mng_t*)mng_get_userdata(mngh); this->status = DEMUX_FINISHED; @@ -97,7 +97,7 @@ mng_bool mymng_close_stream(mng_handle mngh){ return MNG_TRUE; } -mng_bool mymng_read_stream(mng_handle mngh, mng_ptr buffer, mng_uint32 size, mng_uint32 *bytesread){ +static mng_bool mymng_read_stream(mng_handle mngh, mng_ptr buffer, mng_uint32 size, mng_uint32 *bytesread){ demux_mng_t *this = (demux_mng_t*)mng_get_userdata(mngh); *bytesread = this->input->read(this->input, buffer, size); @@ -105,7 +105,7 @@ mng_bool mymng_read_stream(mng_handle mngh, mng_ptr buffer, mng_uint32 size, mng return MNG_TRUE; } -mng_bool mymng_process_header(mng_handle mngh, mng_uint32 width, mng_uint32 height){ +static mng_bool mymng_process_header(mng_handle mngh, mng_uint32 width, mng_uint32 height){ demux_mng_t *this = (demux_mng_t*)mng_get_userdata(mngh); this->bih.biWidth = width; @@ -118,13 +118,13 @@ mng_bool mymng_process_header(mng_handle mngh, mng_uint32 width, mng_uint32 heig return MNG_TRUE; } -mng_uint32 mymng_get_tick_count(mng_handle mngh){ +static mng_uint32 mymng_get_tick_count(mng_handle mngh){ demux_mng_t *this = (demux_mng_t*)mng_get_userdata(mngh); return this->tick_count; } -mng_bool mymng_set_timer(mng_handle mngh, mng_uint32 msecs){ +static mng_bool mymng_set_timer(mng_handle mngh, mng_uint32 msecs){ demux_mng_t *this = (demux_mng_t*)mng_get_userdata(mngh); this->timer_count = msecs; @@ -132,13 +132,13 @@ mng_bool mymng_set_timer(mng_handle mngh, mng_uint32 msecs){ return MNG_TRUE; } -mng_ptr mymng_get_canvas_line(mng_handle mngh, mng_uint32 line){ +static mng_ptr mymng_get_canvas_line(mng_handle mngh, mng_uint32 line){ demux_mng_t *this = (demux_mng_t*)mng_get_userdata(mngh); return this->image + line * this->bih.biWidth * 3; } -mng_bool mymng_refresh(mng_handle mngh, mng_uint32 x, mng_uint32 y, mng_uint32 w, mng_uint32 h){ +static mng_bool mymng_refresh(mng_handle mngh, mng_uint32 x, mng_uint32 y, mng_uint32 w, mng_uint32 h){ return MNG_TRUE; } -- cgit v1.2.3