summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_mng.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-12-05 15:54:56 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2003-12-05 15:54:56 +0000
commit7958ce62d6ae127ee9b8664c8afae5754063389f (patch)
tree658e11edf004b0ae3ac3114ffe8ed5f8604ccefd /src/demuxers/demux_mng.c
parentb529e4b1f1668c03d3cb35c0c742f301b8c415db (diff)
downloadxine-lib-7958ce62d6ae127ee9b8664c8afae5754063389f.tar.gz
xine-lib-7958ce62d6ae127ee9b8664c8afae5754063389f.tar.bz2
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
Diffstat (limited to 'src/demuxers/demux_mng.c')
-rw-r--r--src/demuxers/demux_mng.c18
1 files changed, 9 insertions, 9 deletions
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;
}