mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
ext: printf format fixes in debug and error messages
This commit is contained in:
parent
86ae538ca2
commit
5beefc66cd
4 changed files with 9 additions and 7 deletions
|
@ -367,7 +367,7 @@ produce_samples (GstFluidDec * fluiddec, GstClockTime pts, guint64 sample)
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (fluiddec, "duration %" GST_TIME_FORMAT
|
GST_DEBUG_OBJECT (fluiddec, "duration %" GST_TIME_FORMAT
|
||||||
", samples %u", GST_TIME_ARGS (duration), samples);
|
", samples %" G_GUINT64_FORMAT, GST_TIME_ARGS (duration), samples);
|
||||||
|
|
||||||
outbuf = gst_buffer_new_allocate (NULL, samples * FLUID_DEC_BPS, NULL);
|
outbuf = gst_buffer_new_allocate (NULL, samples * FLUID_DEC_BPS, NULL);
|
||||||
|
|
||||||
|
|
|
@ -323,8 +323,9 @@ gst_mim_enc_chain (GstPad * pad, GstObject * parent, GstBuffer * in)
|
||||||
GST_BUFFER_FLAG_SET (out, GST_BUFFER_FLAG_DELTA_UNIT);
|
GST_BUFFER_FLAG_SET (out, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||||
|
|
||||||
|
|
||||||
GST_LOG_OBJECT (mimenc, "incoming buf size %d, encoded size %d",
|
GST_LOG_OBJECT (mimenc, "incoming buf size %" G_GSIZE_FORMAT
|
||||||
gst_buffer_get_size (in), gst_buffer_get_size (out));
|
", encoded size %" G_GSIZE_FORMAT, gst_buffer_get_size (in),
|
||||||
|
gst_buffer_get_size (out));
|
||||||
++mimenc->frames;
|
++mimenc->frames;
|
||||||
|
|
||||||
/* now let's create that tcp header */
|
/* now let's create that tcp header */
|
||||||
|
|
|
@ -832,8 +832,9 @@ gst_srtp_dec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf,
|
||||||
goto drop_buffer;
|
goto drop_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_LOG_OBJECT (pad, "Received %s buffer of size %d with SSRC = %u",
|
GST_LOG_OBJECT (pad, "Received %s buffer of size %" G_GSIZE_FORMAT
|
||||||
is_rtcp ? "RTCP" : "RTP", gst_buffer_get_size (buf), ssrc);
|
" with SSRC = %u", is_rtcp ? "RTCP" : "RTP", gst_buffer_get_size (buf),
|
||||||
|
ssrc);
|
||||||
|
|
||||||
/* Change buffer to remove protection */
|
/* Change buffer to remove protection */
|
||||||
buf = gst_buffer_make_writable (buf);
|
buf = gst_buffer_make_writable (buf);
|
||||||
|
|
|
@ -331,8 +331,8 @@ check_new_stream_locked (GstSrtpEnc * filter, guint32 ssrc)
|
||||||
|
|
||||||
if (gst_buffer_get_size (filter->key) != SRTP_MASTER_KEY_LEN) {
|
if (gst_buffer_get_size (filter->key) != SRTP_MASTER_KEY_LEN) {
|
||||||
GST_ELEMENT_ERROR (filter, LIBRARY, SETTINGS, ("Master key size is wrong"),
|
GST_ELEMENT_ERROR (filter, LIBRARY, SETTINGS, ("Master key size is wrong"),
|
||||||
("Expected master key of %d bytes, but received %d bytes",
|
("Expected master key of %d bytes, but received %" G_GSIZE_FORMAT
|
||||||
SRTP_MASTER_KEY_LEN, gst_buffer_get_size (filter->key)));
|
" bytes", SRTP_MASTER_KEY_LEN, gst_buffer_get_size (filter->key)));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue