summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@ericsson.com>2015-11-12 16:01:25 (GMT)
committerRobert Swain <robert.swain@ericsson.com>2015-11-12 16:07:13 (GMT)
commit5eb92d7e58a5aec82034d1a6d3f5ef66501172b7 (patch)
tree3b8084b17e8c5d104136418c0672aa83ba9aa1ab
parentfa4f0986a2cc6491c6d7c469dd93e85a1b7840f9 (diff)
downloadopenwebrtc-gst-plugins-5eb92d7e58a5aec82034d1a6d3f5ef66501172b7.tar.gz
openwebrtc-gst-plugins-5eb92d7e58a5aec82034d1a6d3f5ef66501172b7.tar.xz
scream: Some print format fixes
-rw-r--r--gst/scream/gstscreamcontroller.c3
-rw-r--r--gst/scream/gstscreamqueue.c8
2 files changed, 7 insertions, 4 deletions
diff --git a/gst/scream/gstscreamcontroller.c b/gst/scream/gstscreamcontroller.c
index eb30289..e5a9c66 100644
--- a/gst/scream/gstscreamcontroller.c
+++ b/gst/scream/gstscreamcontroller.c
@@ -541,7 +541,8 @@ guint64 gst_scream_controller_approve_transmits(GstScreamController *self, guint
* Enforce packet pacing
*/
if (self->next_transmit_t_us - time_us > 1000 && self->next_transmit_t_us > time_us) {
- GST_DEBUG("Enforcing packet pacing: time: %lu, next_transmit_t: %lu", time_us, self->next_transmit_t_us);
+ GST_DEBUG("Enforcing packet pacing: time: %" G_GUINT64_FORMAT
+ ", next_transmit_t: %" G_GUINT64_FORMAT, time_us, self->next_transmit_t_us);
next_approve_time = self->next_transmit_t_us - time_us;
goto end;
}
diff --git a/gst/scream/gstscreamqueue.c b/gst/scream/gstscreamqueue.c
index 448f829..e8d2f51 100644
--- a/gst/scream/gstscreamqueue.c
+++ b/gst/scream/gstscreamqueue.c
@@ -487,8 +487,10 @@ static void gst_scream_queue_srcpad_loop(GstScreamQueue *self)
if (time_now_us >= self->next_approve_time) {
time_until_next_approve = gst_scream_controller_approve_transmits(self->scream_controller,
time_now_us);
- } else
- GST_LOG_OBJECT(self, "Time is %lu, waiting %lu", time_now_us, self->next_approve_time);
+ } else {
+ GST_LOG_OBJECT(self, "Time is %" G_GUINT64_FORMAT ", waiting %" G_GUINT64_FORMAT,
+ time_now_us, self->next_approve_time);
+ }
/* Send all approved packets */
while (!gst_data_queue_is_empty(self->approved_packets)) {
@@ -514,7 +516,7 @@ static void gst_scream_queue_srcpad_loop(GstScreamQueue *self)
}
self->next_approve_time = time_now_us + time_until_next_approve;
- GST_LOG_OBJECT(self, "Popping or waiting %lu", time_until_next_approve);
+ GST_LOG_OBJECT(self, "Popping or waiting %" G_GUINT64_FORMAT, time_until_next_approve);
item = (GstScreamDataQueueItem *)g_async_queue_timeout_pop(self->incoming_packets, time_until_next_approve);
if (!item) {
goto end;