summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-12-16 19:08:57 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-12-16 19:08:57 +0100
commit5370457db5f5c5ac12f6ba6da5418e8ed16a19fb (patch)
treee9b36e3380d9f4ec48a9d88929d81b54b7eabd10
parentc2b8b2e38e2073ebb6fbb177db713c03c158413b (diff)
event: add check for USE_VIDEO
-rw-r--r--src/event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c
index 6cf24cc..b29ab8b 100644
--- a/src/event.c
+++ b/src/event.c
@@ -124,8 +124,10 @@ int event_encode_dict(struct odict *od, struct ua *ua, enum ua_event ev,
if (0 == str_casecmp(prm, "audio"))
strm = audio_strm(call_audio(call));
+#ifdef USE_VIDEO
else if (0 == str_casecmp(prm, "video"))
strm = video_strm(call_video(call));
+#endif
err = add_rtcp_stats(od, stream_rtcp_stats(strm));
if (err)