Mercurial > mplayer.hg
comparison libmpdemux/stream.c @ 16750:0a31740dd5e6
Use PRI?64 defines as format strings for 64 bit variables.
author | reimar |
---|---|
date | Thu, 13 Oct 2005 18:33:56 +0000 |
parents | 56a5f69e9b35 |
children | 4fced87835f3 |
comparison
equal
deleted
inserted
replaced
16749:a3e5975a7618 | 16750:0a31740dd5e6 |
---|---|
266 } | 266 } |
267 break; | 267 break; |
268 } | 268 } |
269 | 269 |
270 if(verbose>=3){ | 270 if(verbose>=3){ |
271 #ifdef _LARGEFILE_SOURCE | 271 printf("s->pos=%"PRIX64" newpos=%"PRIX64" new_bufpos=%"PRIX64" buflen=%X \n", |
272 printf("s->pos=%llX newpos=%llX new_bufpos=%llX buflen=%X \n", | 272 (int64_t)s->pos,(int64_t)newpos,(int64_t)pos,s->buf_len); |
273 (long long)s->pos,(long long)newpos,(long long)pos,s->buf_len); | |
274 #else | |
275 printf("s->pos=%X newpos=%X new_bufpos=%X buflen=%X \n", | |
276 (unsigned int)s->pos,newpos,pos,s->buf_len); | |
277 #endif | |
278 } | 273 } |
279 pos-=newpos; | 274 pos-=newpos; |
280 | 275 |
281 if(newpos==0 || newpos!=s->pos){ | 276 if(newpos==0 || newpos!=s->pos){ |
282 switch(s->type){ | 277 switch(s->type){ |
331 return 1; | 326 return 1; |
332 } | 327 } |
333 | 328 |
334 // if(pos==s->buf_len) printf("XXX Seek to last byte of file -> EOF\n"); | 329 // if(pos==s->buf_len) printf("XXX Seek to last byte of file -> EOF\n"); |
335 | 330 |
336 #ifdef _LARGEFILE_SOURCE | 331 mp_msg(MSGT_STREAM,MSGL_V,"stream_seek: WARNING! Can't seek to 0x%"PRIX64" !\n",(int64_t)(pos+newpos)); |
337 mp_msg(MSGT_STREAM,MSGL_V,"stream_seek: WARNING! Can't seek to 0x%llX !\n",(long long)(pos+newpos)); | |
338 #else | |
339 mp_msg(MSGT_STREAM,MSGL_V,"stream_seek: WARNING! Can't seek to 0x%X !\n",(pos+newpos)); | |
340 #endif | |
341 return 0; | 332 return 0; |
342 } | 333 } |
343 | 334 |
344 | 335 |
345 void stream_reset(stream_t *s){ | 336 void stream_reset(stream_t *s){ |