summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pjsip-apps/src/vidgui/vidgui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/pjsip-apps/src/vidgui/vidgui.cpp b/pjsip-apps/src/vidgui/vidgui.cpp
index 823ec8bf..77f805d7 100644
--- a/pjsip-apps/src/vidgui/vidgui.cpp
+++ b/pjsip-apps/src/vidgui/vidgui.cpp
@@ -327,6 +327,9 @@ void MainWin::initVideoWindow()
if (currentCall_ == -1)
return;
+ delete video_;
+ video_ = NULL;
+
pjsua_call_get_info(currentCall_, &ci);
for (i = 0; i < ci.media_cnt; ++i) {
if ((ci.media[i].type == PJMEDIA_TYPE_VIDEO) &&