Commit 37e59211 authored by Simon Morlat's avatar Simon Morlat

fix compil errors in printfs

parent 40e4fefd
......@@ -1676,7 +1676,7 @@ mblk_t *ms_load_jpeg_as_yuv(const char *jpgpath, MSVideoSize *reqsize){
}
err=read(fd,jpgbuf,statbuf.st_size);
if (err!=statbuf.st_size){
ms_error("Could not read as much as wanted: %i<>%i !",err,statbuf.st_size);
ms_error("Could not read as much as wanted: %i<>%li !",err,statbuf.st_size);
}
m=jpeg2yuv(jpgbuf,statbuf.st_size,reqsize);
ms_free(jpgbuf);
......
......@@ -677,7 +677,7 @@ static mblk_t *skip_jpeg_headers(mblk_t *full_frame, mblk_t **lqt, mblk_t **cqt)
uint8_t *pbuf_ptr=full_frame->b_rptr;
uint8_t *buf_end=full_frame->b_wptr;
ms_message("image size: %i)", buf_end-pbuf_ptr);
ms_message("image size: %li)", buf_end-pbuf_ptr);
*lqt=NULL;
*cqt=NULL;
......@@ -685,7 +685,7 @@ static mblk_t *skip_jpeg_headers(mblk_t *full_frame, mblk_t **lqt, mblk_t **cqt)
err = find_marker(&pbuf_ptr, buf_end);
while (err!=-1)
{
ms_message("marker found: %x (offset from beginning%i)", err, pbuf_ptr-full_frame->b_rptr);
ms_message("marker found: %x (offset from beginning %li)", err, pbuf_ptr-full_frame->b_rptr);
if (err==0xdb)
{
/* copy DQT table */
......
......@@ -214,8 +214,8 @@ static void x11video_prepare(MSFilter *f){
XvImageFormatValues *imgfmt;
int nimgfmt=0;
ms_message("Found output adaptor; name=%s num_ports=%i, with formats:",
ai->name,ai->num_ports,ai->num_formats);
ms_message("Found output adaptor; name=%s num_ports=%i, with %i formats:",
ai->name,(int)ai->num_ports,(int)ai->num_formats);
imgfmt=XvListImageFormats(s->display,ai->base_id,&nimgfmt);
for(i=0;i<nimgfmt;++i){
char fcc[5]={0};
......@@ -228,7 +228,7 @@ static void x11video_prepare(MSFilter *f){
/*we found a format interesting to us*/
for(k=0;k<ai->num_ports;++k){
if (XvGrabPort(s->display,ai->base_id+k,CurrentTime)==0){
ms_message("Grabbed port %i",ai->base_id+k);
ms_message("Grabbed port %i",(int)ai->base_id+k);
port=ai->base_id+k;
imgfmt_id=imgfmt[i].id;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment