mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
faac, rtmp: more printf format fixes in debug messages
https://bugzilla.gnome.org/show_bug.cgi?id=662618
This commit is contained in:
parent
9d0bdcf6d7
commit
026af880b5
2 changed files with 6 additions and 6 deletions
|
@ -657,7 +657,7 @@ gst_faac_handle_frame (GstAudioEncoder * enc, GstBuffer * in_buf)
|
||||||
|
|
||||||
gst_buffer_unmap (in_buf, data, size);
|
gst_buffer_unmap (in_buf, data, size);
|
||||||
|
|
||||||
GST_LOG_OBJECT (faac, "encoder return: %d", ret_size);
|
GST_LOG_OBJECT (faac, "encoder return: %" G_GSIZE_FORMAT, ret_size);
|
||||||
|
|
||||||
if (ret_size > 0) {
|
if (ret_size > 0) {
|
||||||
gst_buffer_unmap (out_buf, out_data, ret_size);
|
gst_buffer_unmap (out_buf, out_data, ret_size);
|
||||||
|
|
|
@ -202,22 +202,22 @@ gst_rtmp_sink_render (GstBaseSink * bsink, GstBuffer * buf)
|
||||||
|
|
||||||
/* FIXME: Parse the first buffer and see if it contains a header plus a packet instead
|
/* FIXME: Parse the first buffer and see if it contains a header plus a packet instead
|
||||||
* of just assuming it's only the header */
|
* of just assuming it's only the header */
|
||||||
GST_LOG_OBJECT (sink, "Caching first buffer of size %d for concatenation",
|
GST_LOG_OBJECT (sink, "Caching first buffer of size %" G_GSIZE_FORMAT
|
||||||
gst_buffer_get_size (buf));
|
" for concatenation", gst_buffer_get_size (buf));
|
||||||
gst_buffer_replace (&sink->cache, buf);
|
gst_buffer_replace (&sink->cache, buf);
|
||||||
sink->first = FALSE;
|
sink->first = FALSE;
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sink->cache) {
|
if (sink->cache) {
|
||||||
GST_LOG_OBJECT (sink, "Joining 2nd buffer of size %d to cached buf",
|
GST_LOG_OBJECT (sink, "Joining 2nd buffer of size %" G_GSIZE_FORMAT
|
||||||
gst_buffer_get_size (buf));
|
" to cached buf", gst_buffer_get_size (buf));
|
||||||
gst_buffer_ref (buf);
|
gst_buffer_ref (buf);
|
||||||
reffed_buf = buf = gst_buffer_join (sink->cache, buf);
|
reffed_buf = buf = gst_buffer_join (sink->cache, buf);
|
||||||
sink->cache = NULL;
|
sink->cache = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_LOG_OBJECT (sink, "Sending %d bytes to RTMP server",
|
GST_LOG_OBJECT (sink, "Sending %" G_GSIZE_FORMAT " bytes to RTMP server",
|
||||||
gst_buffer_get_size (buf));
|
gst_buffer_get_size (buf));
|
||||||
|
|
||||||
data = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
|
data = gst_buffer_map (buf, &size, NULL, GST_MAP_READ);
|
||||||
|
|
Loading…
Reference in a new issue