]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7508: add debug logs
authorSeven Du <dujinfang@gmail.com>
Sun, 29 Mar 2015 14:13:28 +0000 (22:13 +0800)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:15 +0000 (12:47 -0500)
src/mod/codecs/mod_vpx/mod_vpx.c

index 0ec8030c002547f78888ebabe3b0c638d5b3f7b4..85d8efd8e9ab2508588beb055e0e9cd00cd24ced 100644 (file)
@@ -527,11 +527,17 @@ static switch_status_t consume_partition(vpx_context_t *context, switch_frame_t
                frame->datalen = 0;
                frame->m = 1;
                context->pkt = NULL;
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "writing 0 bytes\n");
                return SWITCH_STATUS_SUCCESS;
        }
 
        key = (context->pkt->data.frame.flags & VPX_FRAME_IS_KEY);
-       
+
+#if 0
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "flags: %x pts: %lld duration:%lu partition_id: %d\n",
+               context->pkt->data.frame.flags, context->pkt->data.frame.pts, context->pkt->data.frame.duration, context->pkt->data.frame.partition_id);
+#endif
+
        /* reset header */
        *(uint8_t *)frame->data = 0;
        payload_descriptor = (vpx_payload_descriptor_t *) frame->data;