Changeset d794dd855b59cba17d4b3c39f5c864ba22c8a1c1
- Timestamp:
- 03/07/08 20:19:21
(3 months ago)
- Author:
- Rémi Denis-Courmont <rdenis@simphalempin.com>
- git-committer:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1215109161 +0300
- git-parent:
[f2dcb7876939ffef8ec81a2252870ab12756285b]
- git-author:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1215109161 +0300
- Message:
Format string fixes
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3ccefd7 |
rd794dd8 |
|
| 155 | 155 | access->info = src->info; |
|---|
| 156 | 156 | |
|---|
| 157 | | msg_Dbg (access, "read %u bytes", len); |
|---|
| | 157 | msg_Dbg (access, "read %zu bytes", len); |
|---|
| 158 | 158 | return len; |
|---|
| 159 | 159 | } |
|---|
| r3ccefd7 |
rd794dd8 |
|
| 242 | 242 | |
|---|
| 243 | 243 | msg_Dbg( p_dec, "format: samplerate:%d Hz channels:%d bits/sample:%d " |
|---|
| 244 | | "blockalign:%d samplesperblock:%d", |
|---|
| | 244 | "blockalign:%zu samplesperblock:%zu", |
|---|
| 245 | 245 | p_dec->fmt_in.audio.i_rate, p_dec->fmt_in.audio.i_channels, |
|---|
| 246 | 246 | p_dec->fmt_in.audio.i_bitspersample, p_sys->i_block, |
|---|
| r5e36fea |
rd794dd8 |
|
| 354 | 354 | if( !asprintf( &psz_submit_song, |
|---|
| 355 | 355 | "&a%%5B%d%%5D=%s&t%%5B%d%%5D=%s" |
|---|
| 356 | | "&i%%5B%d%%5D=%llu&o%%5B%d%%5D=P&r%%5B%d%%5D=" |
|---|
| | 356 | "&i%%5B%d%%5D=%ju&o%%5B%d%%5D=P&r%%5B%d%%5D=" |
|---|
| 357 | 357 | "&l%%5B%d%%5D=%d&b%%5B%d%%5D=%s" |
|---|
| 358 | 358 | "&n%%5B%d%%5D=%s&m%%5B%d%%5D=%s", |
|---|
| … | … | |
| 696 | 696 | char *psz_username, *psz_password; |
|---|
| 697 | 697 | time_t timestamp; |
|---|
| 698 | | char psz_timestamp[33]; |
|---|
| | 698 | char psz_timestamp[21]; |
|---|
| 699 | 699 | |
|---|
| 700 | 700 | struct md5_s p_struct_md5; |
|---|
| … | … | |
| 746 | 746 | } |
|---|
| 747 | 747 | |
|---|
| 748 | | snprintf( psz_timestamp, 33, "%llu", (uintmax_t)timestamp ); |
|---|
| | 748 | snprintf( psz_timestamp, sizeof( psz_timestamp ), "%"PRIu64, |
|---|
| | 749 | (uint64_t)timestamp ); |
|---|
| 749 | 750 | |
|---|
| 750 | 751 | /* generates a md5 hash of : |
|---|
| r3561b9b |
rd794dd8 |
|
| 136 | 136 | #endif |
|---|
| 137 | 137 | |
|---|
| 138 | | msg_Dbg( p_dec, "dumped %i bytes", p_block->i_buffer ); |
|---|
| | 138 | msg_Dbg( p_dec, "dumped %zu bytes", p_block->i_buffer ); |
|---|
| 139 | 139 | } |
|---|
| 140 | 140 | |
|---|
| red7b6cb |
rd794dd8 |
|
| 77 | 77 | if( p_block->i_buffer == kBufferSize ) |
|---|
| 78 | 78 | { |
|---|
| 79 | | msg_Dbg( p_dec, "got %d ms", *(mtime_t *)p_block->p_buffer / 1000 ); |
|---|
| 80 | | msg_Dbg( p_dec, "got %d ms offset", (mdate() - *(mtime_t *)p_block->p_buffer) / 1000 ); |
|---|
| | 79 | msg_Dbg( p_dec, "got %"PRIu64" ms", |
|---|
| | 80 | *(mtime_t *)p_block->p_buffer / 1000 ); |
|---|
| | 81 | msg_Dbg( p_dec, "got %"PRIu64" ms offset", |
|---|
| | 82 | (mdate() - *(mtime_t *)p_block->p_buffer) / 1000 ); |
|---|
| 81 | 83 | *(mtime_t *)(p_pic->p->p_pixels) = *(mtime_t *)p_block->p_buffer; |
|---|
| 82 | 84 | } |
|---|
| red7b6cb |
rd794dd8 |
|
| 84 | 84 | p_block->i_dts = p_pict->date; |
|---|
| 85 | 85 | |
|---|
| 86 | | msg_Dbg( p_enc, "putting %dms", *(mtime_t*)p_block->p_buffer / 1000 ); |
|---|
| 87 | | |
|---|
| | 86 | msg_Dbg( p_enc, "putting %"PRIu64"ms", |
|---|
| | 87 | *(mtime_t*)p_block->p_buffer / 1000 ); |
|---|
| 88 | 88 | return p_block; |
|---|
| 89 | 89 | } |
|---|
| red7b6cb |
rd794dd8 |
|
| 215 | 215 | static void Display( vout_thread_t *p_vout, picture_t *p_pic ) |
|---|
| 216 | 216 | { |
|---|
| 217 | | msg_Dbg( p_vout, "VOUT got %d ms offset", (mdate() - *(mtime_t *)p_pic->p->p_pixels) / 1000 ); |
|---|
| | 217 | msg_Dbg( p_vout, "VOUT got %"PRIu64" ms offset", |
|---|
| | 218 | (mdate() - *(mtime_t *)p_pic->p->p_pixels) / 1000 ); |
|---|
| 218 | 219 | |
|---|
| 219 | 220 | /* No need to do anything, the fake direct buffers stay as they are */ |
|---|
| rd34e1a8 |
rd794dd8 |
|
| 223 | 223 | msg_Dbg( p_mux, "Packet size %d", p_sys->i_packet_size); |
|---|
| 224 | 224 | if (p_sys->i_bitrate_override) |
|---|
| 225 | | msg_Dbg( p_mux, "Bitrate override %d", p_sys->i_bitrate_override); |
|---|
| | 225 | msg_Dbg( p_mux, "Bitrate override %"PRId64, p_sys->i_bitrate_override); |
|---|
| 226 | 226 | p_sys->i_packet_count= 0; |
|---|
| 227 | 227 | |
|---|
| r3561b9b |
rd794dd8 |
|
| 166 | 166 | "--"BOUNDARY"\r\n" |
|---|
| 167 | 167 | "Content-Type: image/jpeg\r\n" |
|---|
| 168 | | "Content-Length: %u\r\n" |
|---|
| | 168 | "Content-Length: %zu\r\n" |
|---|
| 169 | 169 | "\r\n"; |
|---|
| 170 | 170 | block_t *p_data = block_FifoGet( p_fifo ); |
|---|
| r3561b9b |
rd794dd8 |
|
| 511 | 511 | { |
|---|
| 512 | 512 | msg_Err( p_filter, |
|---|
| 513 | | "Insufficient data in shared memory. need %d, got %d", |
|---|
| | 513 | "Insufficient data in shared memory. need %zu, got %zu", |
|---|
| 514 | 514 | i_neededsize, i_size ); |
|---|
| 515 | 515 | p_ovl->data.p_pic->pf_release( p_ovl->data.p_pic ); |
|---|
| … | … | |
| 918 | 918 | } |
|---|
| 919 | 919 | |
|---|
| 920 | | msg_Dbg( p_filter, "%d commands are available", p_sys->i_commands ); |
|---|
| | 920 | msg_Dbg( p_filter, "%zu commands are available", p_sys->i_commands ); |
|---|
| 921 | 921 | for( size_t i_index = 0; i_index < p_sys->i_commands; i_index++ ) |
|---|
| 922 | 922 | msg_Dbg( p_filter, " %s", p_sys->pp_commands[i_index]->psz_command ); |
|---|