client_addr_len = sizeof(client_addr);
if ((client_sock = accept(sock, (struct sockaddr*)&client_addr, &client_addr_len)) < 0) {
- thumb_stderror("accept failed : %s");
+ thumb_stderror("accept failed");
return TRUE;
}
block_size = buf_size;
}
if (send(client_sock, buf+sending_block, block_size, 0) != block_size) {
- thumb_stderror("sendto failed : %s");
+ thumb_stderror("sendto failed");
}
sending_block += block_size;
buf_size -= block_size;
if (alpha) *alpha = thumb_info.alpha;
if (is_saved) *is_saved = thumb_info.is_saved;
- thumb_dbg("Thumb data is generated successfully (Size:%d, W:%d, H:%d) 0x%x", *size, *width, *height, *data);
+ thumb_dbg("Thumb data is generated successfully (Size:%d, W:%d, H:%d) %p", *size, *width, *height, *data);
return MS_MEDIA_ERR_NONE;
}
#if 1
if (imagecount == 0) {
/* Regard the width/height of the first image block as the size of thumbnails. */
- int img_block_w, img_block_h;
+ int img_block_w = 0, img_block_h = 0;
img_block_w = EncodedDataBuffer[ifegstreamctrl.buffpos + 4] |(EncodedDataBuffer[ifegstreamctrl.buffpos + 5] << 8);
img_block_h = EncodedDataBuffer[ifegstreamctrl.buffpos + 6] |(EncodedDataBuffer[ifegstreamctrl.buffpos + 7] << 8);
- thumb_dbg("Image block width : %d, Height : %d, left : %d, top : %d", img_block_w, img_block_h);
+ thumb_dbg("Image block width : %d, Height : %d", img_block_w, img_block_h);
*pWidth = img_block_w;
*pHeight = img_block_h;
thumb_dbg("video width: %d", width);
thumb_dbg("video height: %d", height);
thumb_dbg("thumbnail size: %d", size);
- thumb_dbg("frame: 0x%x", frame);
+ thumb_dbg("frame: %p", frame);
thumb_dbg("orientation: %d", rot_type);
if (frame == NULL || width == 0 || height == 0) {
thumb_dbg("success to remove file");
return TRUE;
} else {
- thumb_stderror("fail to remove file[%s] result");
+ thumb_stderror("fail to remove file");
return FALSE;
}
}