videobox videomixer \
cairo cairo_gobject dv1394 gdk_pixbuf libdv libpng \
oss oss4 shout2 \
- taglib wavpack "
+ taglib wavpack \
+ osx_video osx_audio "
AC_SUBST(GST_PLUGINS_NONPORTED)
dnl these are all the gst plug-ins, compilable without additional libs
*size = info.size;
- GST_DEBUG_OBJECT (btrans, "unit size = %d for format %s w %d height %d",
- *size, GST_VIDEO_INFO_NAME (&info), GST_VIDEO_INFO_WIDTH (&info),
+ GST_DEBUG_OBJECT (btrans,
+ "unit size = %" G_GSIZE_FORMAT " for format %s w %d height %d", *size,
+ GST_VIDEO_INFO_NAME (&info), GST_VIDEO_INFO_WIDTH (&info),
GST_VIDEO_INFO_HEIGHT (&info));
return TRUE;
GST_BUFFER_OFFSET_END (outbuf) = GST_BUFFER_OFFSET (outbuf) + outsamples;
}
- GST_DEBUG_OBJECT (self, "Pushing residue buffer of size %d with timestamp: %"
+ GST_DEBUG_OBJECT (self,
+ "Pushing residue buffer of size %" G_GSIZE_FORMAT " with timestamp: %"
GST_TIME_FORMAT ", duration: %" GST_TIME_FORMAT ", offset: %"
G_GUINT64_FORMAT ", offset_end: %" G_GUINT64_FORMAT ", nsamples_out: %d",
gst_buffer_get_size (outbuf),
GST_BUFFER_OFFSET_END (outbuf) = GST_BUFFER_OFFSET_NONE;
}
- GST_DEBUG_OBJECT (self, "Pushing buffer of size %d with timestamp: %"
+ GST_DEBUG_OBJECT (self,
+ "Pushing buffer of size %" G_GSIZE_FORMAT " with timestamp: %"
GST_TIME_FORMAT ", duration: %" GST_TIME_FORMAT ", offset: %"
G_GUINT64_FORMAT ", offset_end: %" G_GUINT64_FORMAT ", nsamples_out: %d",
gst_buffer_get_size (outbuf),
} else {
/* FIXME: baseparse always seems to hand us buffers of min_frame_size
* bytes, which is unhelpful here */
- GST_LOG_OBJECT (dcaparse, "next sync out of reach (%u < %u)",
- bufsize, size + 16);
+ GST_LOG_OBJECT (dcaparse,
+ "next sync out of reach (%" G_GSIZE_FORMAT " < %u)", bufsize,
+ size + 16);
/* *skipsize = 0; */
/* return FALSE; */
}
goto cleanup;
} else {
GST_ERROR_OBJECT (flacparse,
- "Giving up on invalid frame (%d bytes)", bufsize);
+ "Giving up on invalid frame (%" G_GSIZE_FORMAT " bytes)", bufsize);
result = FALSE;
goto cleanup;
}
gst_bit_reader_init (&reader, data, size);
if (size != 4 + 34) {
- GST_ERROR_OBJECT (flacparse, "Invalid metablock size for STREAMINFO: %u",
- size);
+ GST_ERROR_OBJECT (flacparse,
+ "Invalid metablock size for STREAMINFO: %" G_GSIZE_FORMAT "", size);
goto failure;
}
auparse = GST_AU_PARSE (parent);
- GST_LOG_OBJECT (auparse, "got buffer of size %u", gst_buffer_get_size (buf));
+ GST_LOG_OBJECT (auparse, "got buffer of size %" G_GSIZE_FORMAT,
+ gst_buffer_get_size (buf));
gst_adapter_push (auparse->adapter, buf);
buf = NULL;
avih_too_small:
{
GST_ELEMENT_ERROR (avi, STREAM, DEMUX, (NULL),
- ("Too small avih (%d available, %d needed)",
+ ("Too small avih (%" G_GSIZE_FORMAT " available, %d needed)",
size, (int) sizeof (gst_riff_avih)));
gst_buffer_unref (buf);
return FALSE;
too_small:
{
GST_ERROR_OBJECT (avi,
- "Not enough data to parse superindex (%d available, 24 needed)", size);
+ "Not enough data to parse superindex (%" G_GSIZE_FORMAT
+ " available, 24 needed)", size);
if (buf) {
gst_buffer_unmap (buf, data, size);
gst_buffer_unref (buf);
too_small:
{
GST_ERROR_OBJECT (avi,
- "Not enough data to parse subindex (%d available, 24 needed)", size);
+ "Not enough data to parse subindex (%" G_GSIZE_FORMAT
+ " available, 24 needed)", size);
goto done; /* continue */
}
not_implemented:
too_small:
{
GST_ERROR_OBJECT (element,
- "Too small vprp (%d available, at least %d needed)",
+ "Too small vprp (%" G_GSIZE_FORMAT " available, at least %d needed)",
size, (int) G_STRUCT_OFFSET (gst_riff_vprp, field_info));
gst_buffer_unref (buf);
return FALSE;
GstBuffer *obuf;
guint8 *data;
- GST_DEBUG_OBJECT (avi, "rounding up dubious list size %d", size);
+ GST_DEBUG_OBJECT (avi, "rounding up dubious list size %" G_GSIZE_FORMAT,
+ size);
obuf = gst_buffer_new_and_alloc (size + 1);
data = gst_buffer_map (obuf, NULL, NULL, GST_MAP_WRITE);
/* check size */
if (size < sizeof (gst_riff_dmlh)) {
GST_ERROR_OBJECT (avi,
- "DMLH entry is too small (%d bytes, %d needed)",
+ "DMLH entry is too small (%" G_GSIZE_FORMAT " bytes, %d needed)",
size, (int) sizeof (gst_riff_dmlh));
gst_buffer_unmap (sub, data, size);
goto next;
avi->sinkpad, &offset, &tag, &buf) != GST_FLOW_OK)
return;
- GST_DEBUG ("will parse index chunk size %u for tag %"
+ GST_DEBUG ("will parse index chunk size %" G_GSIZE_FORMAT " for tag %"
GST_FOURCC_FORMAT, gst_buffer_get_size (buf), GST_FOURCC_ARGS (tag));
gst_avi_demux_parse_index (avi, buf);
/* advance offset */
offset += 8 + GST_ROUND_UP_2 (size);
- GST_DEBUG ("will parse index chunk size %u for tag %"
+ GST_DEBUG ("will parse index chunk size %" G_GSIZE_FORMAT " for tag %"
GST_FOURCC_FORMAT, gst_buffer_get_size (buf), GST_FOURCC_ARGS (tag));
avi->offset = avi->first_movi_offset;
}
wrong_size:
{
- GST_DEBUG_OBJECT (avi, "got %d bytes which is <> 8 bytes", bufsize);
+ GST_DEBUG_OBJECT (avi, "got %" G_GSIZE_FORMAT " bytes which is <> 8 bytes",
+ bufsize);
res = GST_FLOW_ERROR;
goto done;
}
GST_DEBUG_OBJECT (avi, "pull_range failure while looking for tags");
goto pull_range_failed;
} else if (gst_buffer_get_size (buf) < 12) {
- GST_DEBUG_OBJECT (avi, "got %d bytes which is less than 12 bytes",
+ GST_DEBUG_OBJECT (avi,
+ "got %" G_GSIZE_FORMAT " bytes which is less than 12 bytes",
gst_buffer_get_size (buf));
gst_buffer_unref (buf);
return GST_FLOW_ERROR;
GST_DEBUG_OBJECT (avi, "couldn't read INFO chunk");
goto pull_range_failed;
}
- GST_DEBUG ("got size %u", gst_buffer_get_size (buf));
+ GST_DEBUG ("got size %" G_GSIZE_FORMAT, gst_buffer_get_size (buf));
if (size < 4) {
GST_DEBUG ("skipping INFO LIST prefix");
avi->offset += (4 - GST_ROUND_UP_2 (size));
gst_segment_do_seek (&seeksegment, rate, format, flags,
cur_type, cur, stop_type, stop, &update);
- keyframe = ! !(flags & GST_SEEK_FLAG_KEY_UNIT);
+ keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT);
cur = seeksegment.position;
GST_DEBUG_OBJECT (avi,
/* update current position in the segment */
avi->segment.position = timestamp;
- GST_DEBUG_OBJECT (avi, "Pushing buffer of size %u, ts %"
+ GST_DEBUG_OBJECT (avi, "Pushing buffer of size %" G_GSIZE_FORMAT ", ts %"
GST_TIME_FORMAT ", dur %" GST_TIME_FORMAT ", off %" G_GUINT64_FORMAT
", off_end %" G_GUINT64_FORMAT,
gst_buffer_get_size (buf), GST_TIME_ARGS (timestamp),
short_buffer:
{
GST_WARNING_OBJECT (avi, "Short read at offset %" G_GUINT64_FORMAT
- ", only got %d/%" G_GUINT64_FORMAT " bytes (truncated file?)", offset,
- gst_buffer_get_size (buf), size);
+ ", only got %" G_GSIZE_FORMAT "/%" G_GUINT64_FORMAT
+ " bytes (truncated file?)", offset, gst_buffer_get_size (buf), size);
gst_buffer_unref (buf);
ret = GST_FLOW_UNEXPECTED;
goto beach;
avi->stream[i].discont = TRUE;
}
- GST_DEBUG ("Store %d bytes in adapter", gst_buffer_get_size (buf));
+ GST_DEBUG ("Store %" G_GSIZE_FORMAT " bytes in adapter",
+ gst_buffer_get_size (buf));
gst_adapter_push (avi->adapter, buf);
switch (avi->state) {
wrong_name_length:
{
GST_ELEMENT_ERROR (sub, STREAM, DECODE, (NULL),
- ("name doesn't fit in buffer (%d < %d)", size, 17 + name_length));
+ ("name doesn't fit in buffer (%" G_GSIZE_FORMAT " < %d)", size,
+ 17 + name_length));
gst_buffer_unmap (buf, data, size);
return GST_FLOW_ERROR;
}
wrong_total_length:
{
GST_ELEMENT_ERROR (sub, STREAM, DECODE, (NULL),
- ("buffer size is wrong: need %d bytes, have %d bytes",
+ ("buffer size is wrong: need %d bytes, have %" G_GSIZE_FORMAT " bytes",
17 + name_length + file_length, size));
gst_buffer_unmap (buf, data, size);
return GST_FLOW_ERROR;
data = gst_buffer_map (buf, &size, NULL, GST_MAP_READWRITE);
GST_LOG_OBJECT (bmd,
- "got buffer %p (size %u, timestamp %" G_GUINT64_FORMAT ", offset %"
- G_GUINT64_FORMAT "", buf, size, GST_BUFFER_TIMESTAMP (buf),
+ "got buffer %p (size %" G_GSIZE_FORMAT ", timestamp %" G_GUINT64_FORMAT
+ ", offset %" G_GUINT64_FORMAT "", buf, size, GST_BUFFER_TIMESTAMP (buf),
GST_BUFFER_OFFSET (buf));
for (; i < size; i++) {
} else {
new = bmd->set;
}
- GST_INFO_OBJECT (bmd, "changing byte %u from 0x%02X to 0x%02X", i,
+ GST_INFO_OBJECT (bmd,
+ "changing byte %" G_GSIZE_FORMAT " from 0x%02X to 0x%02X", i,
(guint) GST_READ_UINT8 (data + i), (guint) ((guint8) new));
data[i] = new;
}
gst_structure_get_int (structure, "height", &height)) {
*size = GST_VIDEO_I420_SIZE (width, height);
ret = TRUE;
- GST_DEBUG_OBJECT (navtest, "our frame size is %d bytes (%dx%d)", *size,
- width, height);
+ GST_DEBUG_OBJECT (navtest,
+ "our frame size is %" G_GSIZE_FORMAT " bytes (%dx%d)", *size, width,
+ height);
}
return ret;
/* Error out on tags with too small headers */
if (gst_buffer_get_size (buffer) < 11) {
- GST_ERROR_OBJECT (demux, "Too small tag size (%d)",
+ GST_ERROR_OBJECT (demux, "Too small tag size (%" G_GSIZE_FORMAT ")",
gst_buffer_get_size (buffer));
return GST_FLOW_ERROR;
}
demux->audio_need_segment = FALSE;
}
- GST_LOG_OBJECT (demux, "pushing %d bytes buffer at pts %" GST_TIME_FORMAT
+ GST_LOG_OBJECT (demux,
+ "pushing %" G_GSIZE_FORMAT " bytes buffer at pts %" GST_TIME_FORMAT
" with duration %" GST_TIME_FORMAT ", offset %" G_GUINT64_FORMAT,
gst_buffer_get_size (outbuf),
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (outbuf)),
demux->video_need_segment = FALSE;
}
- GST_LOG_OBJECT (demux, "pushing %d bytes buffer at pts %" GST_TIME_FORMAT
+ GST_LOG_OBJECT (demux,
+ "pushing %" G_GSIZE_FORMAT " bytes buffer at pts %" GST_TIME_FORMAT
" with duration %" GST_TIME_FORMAT ", offset %" G_GUINT64_FORMAT
", keyframe (%d)", gst_buffer_get_size (outbuf),
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (outbuf)),
demux = GST_FLV_DEMUX (parent);
- GST_LOG_OBJECT (demux, "received buffer of %d bytes at offset %"
+ GST_LOG_OBJECT (demux,
+ "received buffer of %" G_GSIZE_FORMAT " bytes at offset %"
G_GUINT64_FORMAT, gst_buffer_get_size (buffer),
GST_BUFFER_OFFSET (buffer));
if (G_UNLIKELY (*buffer && gst_buffer_get_size (*buffer) != size)) {
GST_WARNING_OBJECT (demux,
- "partial pull got %d when expecting %d from offset %" G_GUINT64_FORMAT,
- gst_buffer_get_size (*buffer), size, offset);
+ "partial pull got %" G_GSIZE_FORMAT " when expecting %d from offset %"
+ G_GUINT64_FORMAT, gst_buffer_get_size (*buffer), size, offset);
gst_buffer_unref (*buffer);
ret = GST_FLOW_UNEXPECTED;
*buffer = NULL;
}
GST_DEBUG_OBJECT (goom,
- "Input buffer has %d samples, time=%" G_GUINT64_FORMAT,
+ "Input buffer has %" G_GSIZE_FORMAT " samples, time=%" G_GUINT64_FORMAT,
gst_buffer_get_size (buffer) / goom->bps, GST_BUFFER_TIMESTAMP (buffer));
/* Collect samples until we have enough for an output frame */
data = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
GST_DEBUG_OBJECT (qtmux, "Adding tag %" GST_FOURCC_FORMAT
- " -> image size %d", GST_FOURCC_ARGS (fourcc), size);
+ " -> image size %" G_GSIZE_FORMAT "", GST_FOURCC_ARGS (fourcc), size);
atom_moov_add_tag (qtmux->moov, fourcc, flags, data, size);
gst_buffer_unmap (buf, data, size);
done:
gsize size;
data = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
- GST_DEBUG_OBJECT (qtmux, "Found private tag %d/%d; size %d, caps %"
+ GST_DEBUG_OBJECT (qtmux,
+ "Found private tag %d/%d; size %" G_GSIZE_FORMAT ", caps %"
GST_PTR_FORMAT, i, num_tags, size, caps);
s = gst_caps_get_structure (caps, 0);
if (s && (style = gst_structure_get_string (s, "style"))) {
g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR);
size = gst_buffer_get_size (buf);
- GST_LOG_OBJECT (qtmux, "sending buffer size %d", size);
+ GST_LOG_OBJECT (qtmux, "sending buffer size %" G_GSIZE_FORMAT, size);
if (mind_fast && qtmux->fast_start_file) {
gint ret;
pad->traf = NULL;
atom_moof_copy_data (moof, &data, &size, &offset);
buffer = _gst_buffer_new_take_data (data, offset);
- GST_LOG_OBJECT (qtmux, "writing moof size %d",
+ GST_LOG_OBJECT (qtmux, "writing moof size %" G_GSIZE_FORMAT,
gst_buffer_get_size (buffer));
ret = gst_qt_mux_send_buffer (qtmux, buffer, &qtmux->header_size, FALSE);
bsize = gst_buffer_get_size (*buf);
/* Catch short reads - we don't want any partial atoms */
if (G_UNLIKELY (bsize < size)) {
- GST_WARNING_OBJECT (qtdemux, "short read: %u < %" G_GUINT64_FORMAT,
- bsize, size);
+ GST_WARNING_OBJECT (qtdemux,
+ "short read: %" G_GSIZE_FORMAT " < %" G_GUINT64_FORMAT, bsize, size);
gst_buffer_unref (*buf);
*buf = NULL;
return GST_FLOW_UNEXPECTED;
if (length != size) {
GST_ELEMENT_ERROR (qtdemux, STREAM, DEMUX,
(_("This file is incomplete and cannot be played.")),
- ("We got less than expected (received %u, wanted %u, offset %"
- G_GUINT64_FORMAT ")", size, (guint) length, cur_offset));
+ ("We got less than expected (received %" G_GSIZE_FORMAT
+ ", wanted %u, offset %" G_GUINT64_FORMAT ")", size,
+ (guint) length, cur_offset));
gst_buffer_unmap (moov, data, size);
gst_buffer_unref (moov);
ret = GST_FLOW_ERROR;
nsize = MIN (nsize, size - 2);
}
- GST_LOG_OBJECT (qtdemux, "3GPP timed text subtitle: %d/%d", nsize, size);
+ GST_LOG_OBJECT (qtdemux, "3GPP timed text subtitle: %d/%" G_GSIZE_FORMAT "",
+ nsize, size);
/* takes care of UTF-8 validation or UTF-16 recognition,
* no other encoding expected */
if (demux->neededbytes == -1)
goto eos;
- GST_DEBUG_OBJECT (demux, "pushing in inbuf %p, neededbytes:%u, available:%u",
- inbuf, demux->neededbytes, gst_adapter_available (demux->adapter));
+ GST_DEBUG_OBJECT (demux,
+ "pushing in inbuf %p, neededbytes:%u, available:%" G_GSIZE_FORMAT, inbuf,
+ demux->neededbytes, gst_adapter_available (demux->adapter));
while (((gst_adapter_available (demux->adapter)) >= demux->neededbytes) &&
(ret == GST_FLOW_OK)) {
data = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
if (size != 0x11) {
- GST_DEBUG ("Atom should have size 0x11, not %u", size);
+ GST_DEBUG ("Atom should have size 0x11, not %" G_GSIZE_FORMAT, size);
goto bad_data;
}
gst_rtp_buffer_unmap (&rtp);
if (outbuf)
- GST_DEBUG_OBJECT (rtpac3depay, "pushing buffer of size %d",
+ GST_DEBUG_OBJECT (rtpac3depay, "pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
return outbuf;
break;
NF++;
- GST_DEBUG_OBJECT (rtpac3pay, "found frame %u of size %u", NF, frame_size);
+ GST_DEBUG_OBJECT (rtpac3pay, "found frame %" G_GSIZE_FORMAT " of size %u",
+ NF, frame_size);
p += frame_size;
left -= frame_size;
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
}
- GST_DEBUG_OBJECT (depayload, "pushing buffer of size %d",
+ GST_DEBUG_OBJECT (depayload, "pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
}
return outbuf;
else
frame_size = wb_frame_size;
- GST_DEBUG_OBJECT (basepayload, "got %d bytes", size);
+ GST_DEBUG_OBJECT (basepayload, "got %" G_GSIZE_FORMAT " bytes", size);
/* FIXME, only
* octet aligned, no interleaving, single channel, no CRC,
marker = gst_rtp_buffer_get_marker (&rtp);
- GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
+ GST_DEBUG ("process : got %" G_GSIZE_FORMAT " bytes, mark %d ts %u seqn %d",
gst_buffer_get_size (buf), marker,
gst_rtp_buffer_get_timestamp (&rtp), gst_rtp_buffer_get_seq (&rtp));
gst_rtp_buffer_map (buf, GST_MAP_READ, &rtp);
- GST_LOG_OBJECT (depayload, "got %d bytes, mark %d ts %u seqn %d",
- gst_buffer_get_size (buf),
- gst_rtp_buffer_get_marker (&rtp),
+ GST_LOG_OBJECT (depayload,
+ "got %" G_GSIZE_FORMAT " bytes, mark %d ts %u seqn %d",
+ gst_buffer_get_size (buf), gst_rtp_buffer_get_marker (&rtp),
gst_rtp_buffer_get_timestamp (&rtp), gst_rtp_buffer_get_seq (&rtp));
GST_LOG_OBJECT (depayload, "got clock-rate=%d, frame_size=%d, "
duration = GST_BUFFER_DURATION (buffer);
GST_LOG_OBJECT (rtpceltpay,
- "got buffer of duration %" GST_TIME_FORMAT ", size %u",
+ "got buffer of duration %" GST_TIME_FORMAT ", size %" G_GSIZE_FORMAT,
GST_TIME_ARGS (duration), size);
/* calculate the size of the size field and the payload */
osize = size;
GST_DEBUG_OBJECT (rtpdvpay,
- "DV RTP payloader got buffer of %u bytes, splitting in %u byte "
- "payload fragments, at time %" GST_TIME_FORMAT, size, max_payload_size,
+ "DV RTP payloader got buffer of %" G_GSIZE_FORMAT
+ " bytes, splitting in %u byte " "payload fragments, at time %"
+ GST_TIME_FORMAT, size, max_payload_size,
GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer)));
if (!rtpdvpay->negotiated) {
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
}
- GST_LOG_OBJECT (depayload, "pushing buffer of size %d",
+ GST_LOG_OBJECT (depayload, "pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
return outbuf;
{
GST_ELEMENT_WARNING (pay, STREAM, WRONG_TYPE,
("Invalid input buffer size"),
- ("Input size should be 4, 20 or 24, got %u", size));
+ ("Input size should be 4, 20 or 24, got %" G_GSIZE_FORMAT, size));
gst_buffer_unmap (buf, data, size);
gst_buffer_unref (buf);
return GST_FLOW_OK;
{
GST_ELEMENT_WARNING (pay, STREAM, WRONG_TYPE,
("Wrong input buffer size"),
- ("Expected input buffer size %u but got %u", size_tab[HDR], size));
+ ("Expected input buffer size %u but got %" G_GSIZE_FORMAT,
+ size_tab[HDR], size));
gst_buffer_unmap (buf, data, size);
gst_buffer_unref (buf);
return GST_FLOW_OK;
marker = gst_rtp_buffer_get_marker (&rtp);
- GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
+ GST_DEBUG ("process : got %" G_GSIZE_FORMAT " bytes, mark %d ts %u seqn %d",
gst_buffer_get_size (buf), marker,
gst_rtp_buffer_get_timestamp (&rtp), gst_rtp_buffer_get_seq (&rtp));
data = gst_buffer_map (buffer, &len, NULL, GST_MAP_READWRITE);
- GST_LOG_OBJECT (pay, "packing %u bytes of data", len);
+ GST_LOG_OBJECT (pay, "packing %" G_GSIZE_FORMAT " bytes of data", len);
/* we need to reshuffle the bytes, output is of the form:
* A B C D .. with the number of bits depending on the bitrate. */
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
}
- GST_LOG_OBJECT (depayload, "pushing buffer of size %d",
+ GST_LOG_OBJECT (depayload, "pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
return outbuf;
("Invalid input buffer size"),
("Invalid buffer size, should be a multiple of"
" G729_FRAME_SIZE(10) with an optional G729B_CN_FRAME_SIZE(2)"
- " added to it, but it is %u", size));
+ " added to it, but it is %" G_GSIZE_FORMAT, size));
gst_buffer_unref (buf);
return GST_FLOW_ERROR;
}
marker = gst_rtp_buffer_get_marker (&rtp);
- GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
+ GST_DEBUG ("process : got %" G_GSIZE_FORMAT " bytes, mark %d ts %u seqn %d",
gst_buffer_get_size (buf), marker,
gst_rtp_buffer_get_timestamp (&rtp), gst_rtp_buffer_get_seq (&rtp));
gst_buffer_unmap (buffer, data, size);
gst_buffer_unref (buffer);
- GST_DEBUG ("gst_rtp_gsm_pay_chain: pushing buffer of size %d",
+ GST_DEBUG ("gst_rtp_gsm_pay_chain: pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
ret = gst_rtp_base_payload_push (basepayload, outbuf);
avcc_too_small:
{
- GST_ERROR_OBJECT (rtph264pay, "avcC size %u < 7", size);
+ GST_ERROR_OBJECT (rtph264pay, "avcC size %" G_GSIZE_FORMAT " < 7", size);
goto error;
}
wrong_version:
gst_adapter_push (rtph264pay->adapter, buffer);
size = gst_adapter_available (rtph264pay->adapter);
data = gst_adapter_map (rtph264pay->adapter, size);
- GST_DEBUG_OBJECT (basepayload, "got %d bytes (%d)", size,
+ GST_DEBUG_OBJECT (basepayload,
+ "got %" G_GSIZE_FORMAT " bytes (%" G_GSIZE_FORMAT ")", size,
gst_buffer_get_size (buffer));
if (!GST_CLOCK_TIME_IS_VALID (timestamp))
data = bdata;
size = bsize;
timestamp = GST_BUFFER_TIMESTAMP (buffer);
- GST_DEBUG_OBJECT (basepayload, "got %d bytes", size);
+ GST_DEBUG_OBJECT (basepayload, "got %" G_GSIZE_FORMAT " bytes", size);
}
ret = GST_FLOW_OK;
/* array must be empty when we get here */
g_assert (nal_queue->len == 0);
- GST_DEBUG_OBJECT (basepayload, "found first start at %u, bytes left %u",
- next, size);
+ GST_DEBUG_OBJECT (basepayload,
+ "found first start at %u, bytes left %" G_GSIZE_FORMAT, next, size);
/* first pass to locate NALs and parse SPS/PPS */
while (size > 4) {
marker = gst_rtp_buffer_get_marker (&rtp);
- GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
+ GST_DEBUG ("process : got %" G_GSIZE_FORMAT " bytes, mark %d ts %u seqn %d",
gst_buffer_get_size (buf), marker,
gst_rtp_buffer_get_timestamp (&rtp), gst_rtp_buffer_get_seq (&rtp));
/* append packets */
for (walk = packets; walk; walk = g_list_next (walk)) {
GstBuffer *buf = GST_BUFFER_CAST (walk->data);
- GST_DEBUG_OBJECT (rtpj2kdepay, "append pu packet of size %u",
+ GST_DEBUG_OBJECT (rtpj2kdepay,
+ "append pu packet of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (buf));
gst_adapter_push (rtpj2kdepay->t_adapter, buf);
}
gst_buffer_unmap (buf, data, size);
}
- GST_DEBUG_OBJECT (rtpj2kdepay, "append pu packet of size %u",
+ GST_DEBUG_OBJECT (rtpj2kdepay, "append pu packet of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (buf));
gst_adapter_push (rtpj2kdepay->f_adapter, buf);
}
timestamp = GST_BUFFER_TIMESTAMP (buffer);
offset = pos = end = 0;
- GST_LOG_OBJECT (pay, "got buffer size %u, timestamp %" GST_TIME_FORMAT, size,
+ GST_LOG_OBJECT (pay,
+ "got buffer size %" G_GSIZE_FORMAT ", timestamp %" GST_TIME_FORMAT, size,
GST_TIME_ARGS (timestamp));
/* do some header defaults first */
size = MakeHeaders (data, type, width, height, qtable, precision, dri);
gst_buffer_unmap (outbuf, data, size);
- GST_DEBUG_OBJECT (rtpjpegdepay,
- "pushing %" G_GSIZE_FORMAT " bytes of header", size);
+ GST_DEBUG_OBJECT (rtpjpegdepay, "pushing %u bytes of header", size);
gst_adapter_push (rtpjpegdepay->adapter, outbuf);
}
gst_rtp_buffer_unmap (&rtp);
if (outbuf)
- GST_DEBUG ("gst_rtp_mp1s_depay_chain: pushing buffer of size %d",
- gst_buffer_get_size (outbuf));
+ GST_DEBUG ("gst_rtp_mp1s_depay_chain: pushing buffer of size %"
+ G_GSIZE_FORMAT, gst_buffer_get_size (outbuf));
return outbuf;
}
gst_rtp_buffer_unmap (&rtp);
if (outbuf)
- GST_DEBUG ("gst_rtp_mp2t_depay_chain: pushing buffer of size %d",
- gst_buffer_get_size (outbuf));
+ GST_DEBUG ("gst_rtp_mp2t_depay_chain: pushing buffer of size %"
+ G_GSIZE_FORMAT, gst_buffer_get_size (outbuf));
return outbuf;
GST_BUFFER_TIMESTAMP (outbuf) = rtpmp2tpay->first_ts;
GST_BUFFER_DURATION (outbuf) = rtpmp2tpay->duration;
- GST_DEBUG_OBJECT (rtpmp2tpay, "pushing buffer of size %d",
+ GST_DEBUG_OBJECT (rtpmp2tpay, "pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
ret = gst_rtp_base_payload_push (GST_RTP_BASE_PAYLOAD (rtpmp2tpay), outbuf);
too_short:
{
GST_ELEMENT_ERROR (rtpmp4apay, STREAM, FORMAT,
- (NULL), ("config string too short, expected 2 bytes, got %d", size));
+ (NULL),
+ ("config string too short, expected 2 bytes, got %" G_GSIZE_FORMAT,
+ size));
gst_buffer_unmap (buffer, data, -1);
return FALSE;
}
payload_len = gst_rtp_buffer_calc_payload_len (towrite, 0, 0);
GST_DEBUG_OBJECT (rtpmp4apay,
- "avail %d, towrite %d, packet_len %d, payload_len %d", size, towrite,
- packet_len, payload_len);
+ "avail %" G_GSIZE_FORMAT ", towrite %d, packet_len %d, payload_len %d",
+ size, towrite, packet_len, payload_len);
/* create buffer to hold the payload. */
outbuf = gst_rtp_buffer_new_allocate (payload_len, 0, 0);
* RTP packet. */
timestamp = -1;
- GST_DEBUG_OBJECT (depayload, "pushing buffer of size %d",
+ GST_DEBUG_OBJECT (depayload,
+ "pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
gst_rtp_mp4g_depay_queue (rtpmp4gdepay, outbuf);
outbuf = gst_adapter_take_buffer (rtpmp4gdepay->adapter, avail);
- GST_DEBUG ("gst_rtp_mp4g_depay_chain: pushing buffer of size %d",
- gst_buffer_get_size (outbuf));
+ GST_DEBUG ("gst_rtp_mp4g_depay_chain: pushing buffer of size %"
+ G_GSIZE_FORMAT, gst_buffer_get_size (outbuf));
gst_rtp_buffer_unmap (&rtp);
return outbuf;
outbuf = gst_adapter_take_buffer (rtpmp4vdepay->adapter, avail);
- GST_DEBUG ("gst_rtp_mp4v_depay_chain: pushing buffer of size %d",
- gst_buffer_get_size (outbuf));
+ GST_DEBUG ("gst_rtp_mp4v_depay_chain: pushing buffer of size %"
+ G_GSIZE_FORMAT, gst_buffer_get_size (outbuf));
}
gst_rtp_buffer_unmap (&rtp);
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DISCONT);
}
GST_DEBUG_OBJECT (rtpmpadepay,
- "gst_rtp_mpa_depay_chain: pushing buffer of size %d",
+ "gst_rtp_mpa_depay_chain: pushing buffer of size %" G_GSIZE_FORMAT "",
gst_buffer_get_size (outbuf));
gst_rtp_buffer_unmap (&rtp);
if (outbuf) {
GST_DEBUG_OBJECT (rtpmpvdepay,
- "gst_rtp_mpv_depay_chain: pushing buffer of size %d",
+ "gst_rtp_mpv_depay_chain: pushing buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (outbuf));
}
return outbuf;
marker = gst_rtp_buffer_get_marker (&rtp);
- GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
+ GST_DEBUG ("process : got %" G_GSIZE_FORMAT " bytes, mark %d ts %u seqn %d",
gst_buffer_get_size (buf), marker,
gst_rtp_buffer_get_timestamp (&rtp), gst_rtp_buffer_get_seq (&rtp));
marker = gst_rtp_buffer_get_marker (&rtp);
- GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
+ GST_DEBUG ("process : got %" G_GSIZE_FORMAT " bytes, mark %d ts %u seqn %d",
gst_buffer_get_size (buf), marker,
gst_rtp_buffer_get_timestamp (&rtp), gst_rtp_buffer_get_seq (&rtp));
gst_rtp_buffer_map (buf, GST_MAP_READ, &rtp);
- GST_DEBUG ("process : got %d bytes, mark %d ts %u seqn %d",
+ GST_DEBUG ("process : got %" G_GSIZE_FORMAT " bytes, mark %d ts %u seqn %d",
gst_buffer_get_size (buf),
gst_rtp_buffer_get_marker (&rtp),
gst_rtp_buffer_get_timestamp (&rtp), gst_rtp_buffer_get_seq (&rtp));
data += 6;
GST_DEBUG_OBJECT (rtptheoradepay,
- "header %d, ident 0x%08x, length %u, left %u", i, ident, length, size);
+ "header %d, ident 0x%08x, length %u, left %" G_GSIZE_FORMAT, i, ident,
+ length, size);
/* FIXME check if we already got this ident */
wrong_size:
{
GST_ELEMENT_WARNING (rtptheorapay, STREAM, DECODE,
- ("Invalid packet size (%d <= 0xffff)", size), (NULL));
+ ("Invalid packet size (%" G_GSIZE_FORMAT " <= 0xffff)", size), (NULL));
gst_buffer_unmap (buffer, data, -1);
gst_buffer_unref (buffer);
return GST_FLOW_OK;
offset += 6;
GST_DEBUG_OBJECT (rtpvorbisdepay,
- "header %d, ident 0x%08x, length %u, left %u", i, ident, length, size);
+ "header %d, ident 0x%08x, length %u, left %" G_GSIZE_FORMAT, i, ident,
+ length, size);
/* FIXME check if we already got this ident */
wrong_size:
{
GST_ELEMENT_WARNING (rtpvorbispay, STREAM, DECODE,
- ("Invalid packet size (1 < %d <= 0xffff)", size), (NULL));
+ ("Invalid packet size (1 < %" G_GSIZE_FORMAT " <= 0xffff)", size),
+ (NULL));
gst_buffer_unmap (buffer, data, -1);
gst_buffer_unref (buffer);
return GST_FLOW_OK;
gst_video_frame_map (&frame, &rtpvrawpay->vinfo, buffer, GST_MAP_READ);
- GST_LOG_OBJECT (rtpvrawpay, "new frame of %u bytes",
+ GST_LOG_OBJECT (rtpvrawpay, "new frame of %" G_GSIZE_FORMAT " bytes",
gst_buffer_get_size (buffer));
/* get pointer and strides of the planes */
width = GST_VIDEO_INFO_WIDTH (&rtpvrawpay->vinfo);
height = GST_VIDEO_INFO_HEIGHT (&rtpvrawpay->vinfo);
- interlaced = ! !(rtpvrawpay->vinfo.flags & GST_VIDEO_FLAG_INTERLACED);
+ interlaced = !!(rtpvrawpay->vinfo.flags & GST_VIDEO_FLAG_INTERLACED);
/* start with line 0, offset 0 */
for (field = 0; field < 1 + interlaced; field++) {
* timestamps in SR reports */
gst_event_copy_segment (event, &in_segment);
GST_DEBUG_OBJECT (rtpsession, "received segment %" GST_SEGMENT_FORMAT,
- in_segment);
+ &in_segment);
/* accept upstream */
gst_segment_copy_into (&in_segment, segment);
* timestamps in SR reports */
gst_event_copy_segment (event, &in_segment);
GST_DEBUG_OBJECT (rtpsession, "received segment %" GST_SEGMENT_FORMAT,
- in_segment);
+ &in_segment);
/* accept upstream */
gst_segment_copy_into (&in_segment, segment);
fft_todo = nfft - (spectrum->num_frames % nfft);
msg_todo = spectrum->frames_todo - spectrum->num_frames;
GST_LOG_OBJECT (spectrum,
- "message frames todo: %u, fft frames todo: %u, input frames %u",
- msg_todo, fft_todo, (size / bpf));
+ "message frames todo: %u, fft frames todo: %u, input frames %"
+ G_GSIZE_FORMAT, msg_todo, fft_todo, (size / bpf));
block_size = msg_todo;
if (block_size > (size / bpf))
block_size = (size / bpf);
have_full_interval = (spectrum->num_frames == spectrum->frames_todo);
- GST_LOG_OBJECT (spectrum, "size: %u, do-fft = %d, do-message = %d", size,
+ GST_LOG_OBJECT (spectrum,
+ "size: %" G_GSIZE_FORMAT ", do-fft = %d, do-message = %d", size,
(spectrum->num_frames % nfft == 0), have_full_interval);
/* If we have enough frames for an FFT or we have all frames required for
data = gst_buffer_map (buffer, &size, NULL, GST_MAP_READ);
- GST_DEBUG ("about to send %d bytes", size);
+ GST_DEBUG ("about to send %" G_GSIZE_FORMAT " bytes", size);
/* let's get the address from the metaata */
gst_net_address_get_ip4_address (&meta->naddr, &destaddr, &destport);
- GST_DEBUG ("sending %d bytes to client %d port %d", size, destaddr, destport);
+ GST_DEBUG ("sending %" G_GSIZE_FORMAT " bytes to client %d port %d", size,
+ destaddr, destport);
theiraddr.sin_family = AF_INET;
theiraddr.sin_addr.s_addr = destaddr;
}
}
- GST_DEBUG ("sent %d bytes", size);
+ GST_DEBUG ("sent %" G_GSIZE_FORMAT " bytes", size);
return GST_FLOW_OK;
if (bsize > UDP_MAX_SIZE) {
GST_WARNING ("Attempting to send a UDP packet larger than maximum "
- "size (%d > %d)", bsize, UDP_MAX_SIZE);
+ "size (%" G_GSIZE_FORMAT " > %d)", bsize, UDP_MAX_SIZE);
}
msg.msg_iov[msg.msg_iovlen].iov_len = bsize;
*size = info.size;
- GST_DEBUG_OBJECT (btrans, "our frame size is %d bytes (%dx%d)", *size,
- info.width, info.height);
+ GST_DEBUG_OBJECT (btrans,
+ "our frame size is %" G_GSIZE_FORMAT " bytes (%dx%d)", *size, info.width,
+ info.height);
return TRUE;
}
wavenc->sent_header = TRUE;
}
- GST_LOG_OBJECT (wavenc, "pushing %u bytes raw audio, ts=%" GST_TIME_FORMAT,
+ GST_LOG_OBJECT (wavenc,
+ "pushing %" G_GSIZE_FORMAT " bytes raw audio, ts=%" GST_TIME_FORMAT,
gst_buffer_get_size (buf), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)));
buf = gst_buffer_make_writable (buf);
GST_LOG_OBJECT (wav,
"Got buffer. timestamp:%" GST_TIME_FORMAT " , duration:%" GST_TIME_FORMAT
- ", size:%u", GST_TIME_ARGS (timestamp), GST_TIME_ARGS (duration),
- gst_buffer_get_size (buf));
+ ", size:%" G_GSIZE_FORMAT, GST_TIME_ARGS (timestamp),
+ GST_TIME_ARGS (duration), gst_buffer_get_size (buf));
if ((res = gst_pad_push (wav->srcpad, buf)) != GST_FLOW_OK)
goto push_error;
GstFlowReturn ret;
GstWavParse *wav = GST_WAVPARSE (parent);
- GST_LOG_OBJECT (wav, "adapter_push %u bytes", gst_buffer_get_size (buf));
+ GST_LOG_OBJECT (wav, "adapter_push %" G_GSIZE_FORMAT " bytes",
+ gst_buffer_get_size (buf));
gst_adapter_push (wav->adapter, buf);
}
#endif
+#ifdef HAVE_XDAMAGE
static void
copy_buffer (GstBuffer * dest, GstBuffer * src)
{
gst_buffer_fill (dest, 0, data, size);
gst_buffer_unmap (src, data, size);
}
+#endif
/* Retrieve an XImageSrcBuffer, preferably from our
* pool of existing images and populate it from the window */