summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-14 19:35:17 +0000
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-14 19:35:26 +0000
commit5a6ad27505c062a2453f3cdc335fe538ba9a6619 (patch)
tree7f67b58bf302525fe8cda98a5d145ca1194fff96
parent820ae5ef5c76d511104d01813828cf79b604e100 (diff)
v4l2_codec: add debug message for update
-rw-r--r--modules/v4l2_codec/v4l2_codec.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/v4l2_codec/v4l2_codec.c b/modules/v4l2_codec/v4l2_codec.c
index 814a477..7cbe9b3 100644
--- a/modules/v4l2_codec/v4l2_codec.c
+++ b/modules/v4l2_codec/v4l2_codec.c
@@ -349,10 +349,10 @@ static void read_handler(int flags, void *arg)
rtp_ts = (90000ULL * (1000000*ts.tv_sec + ts.tv_usec)) / 1000000;
#if 0
- debug("v4l2_codec: %s frame captured at %ldsec, %ldusec (%zu bytes)\n",
+ debug("v4l2_codec: %s frame captured at %ldsec, %ldusec (%zu bytes) rtp_ts=%u\n",
keyframe ? "KEY" : " ",
buf.timestamp.tv_sec, buf.timestamp.tv_usec,
- (size_t)buf.bytesused);
+ (size_t)buf.bytesused, rtp_ts);
#endif
/* pass the frame to the encoders */
@@ -448,6 +448,14 @@ static int encode_packet(struct videnc_state *st, bool update,
(void)st;
(void)update;
(void)frame;
+
+ /*
+ * XXX: add support for KEY frame requests
+ */
+ if (update) {
+ info("v4l2_codec: peer requested a KEY frame (ignored)\n");
+ }
+
return 0;
}