gst_buffer_map (buf, &map, GST_MAP_READ);
packet.packet = map.data;
packet.bytes = map.size;
- GST_DEBUG ("%p, %d", map.data, map.size);
+ GST_DEBUG ("%p, %" G_GSIZE_FORMAT, map.data, map.size);
packet.granulepos = GST_BUFFER_OFFSET_END (buf);
packet.packetno = parse->packetno + parse->buffer_queue->length;
packet.e_o_s = 0;
offset -= size;
gst_memory_unref (mem);
}
- GST_DEBUG ("no memory found for offset %u", meta->offset[plane]);
+ GST_DEBUG ("no memory found for offset %" G_GSIZE_FORMAT,
+ meta->offset[plane]);
return FALSE;
/* ERRORS */
/* set the socket to non blocking */
if (fcntl (handle.fd, F_SETFL, O_NONBLOCK) < 0) {
- GST_ERROR_OBJECT (mhsink, "failed to make socket %d non-blocking: %s",
+ GST_ERROR_OBJECT (mhsink, "failed to make socket %s non-blocking: %s",
mhclient->debug, g_strerror (errno));
}
/* partial write means that the client cannot read more and we should
* stop sending more */
GST_LOG_OBJECT (sink,
- "partial write on %d of %" G_GSSIZE_FORMAT " bytes",
+ "partial write on %s of %" G_GSSIZE_FORMAT " bytes",
mhclient->debug, wrote);
mhclient->bufoffset += wrote;
more = FALSE;
mhclient->flushcount--;
GST_LOG_OBJECT (sink, "%s client %p at position %d",
- socket, client, mhclient->bufpos);
+ mhclient->debug, client, mhclient->bufpos);
/* queueing a buffer will ref it */
mhsinkclass->client_queue_buffer (mhsink, mhclient, buf);