summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/vidgui/vidgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/vidgui/vidgui.cpp')
-rw-r--r--pjsip-apps/src/vidgui/vidgui.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/pjsip-apps/src/vidgui/vidgui.cpp b/pjsip-apps/src/vidgui/vidgui.cpp
index 5a1e5903..be0903b6 100644
--- a/pjsip-apps/src/vidgui/vidgui.cpp
+++ b/pjsip-apps/src/vidgui/vidgui.cpp
@@ -220,7 +220,7 @@ void MainWin::preview()
//X11 Display
//status = pjsua_vid_win_set_show(wid, PJ_TRUE);
//This is handled by VidWin now
- //video_prev_->show();
+ //video_prev_->show_sdl();
showStatus("Preview started");
previewButton_->setText(tr("Stop &Preview"));
@@ -623,9 +623,15 @@ static pjsip_module mod_default_handler =
NULL, /* on_tsx_state() */
};
+static int main_func(int argc, char *argv[])
+{
+ return 0;
+}
int main(int argc, char *argv[])
{
+ pj_run_app(&main_func, argc, argv, 0);
+
/* At least on Linux, we have to initialize SDL video subsystem prior to
* creating/initializing QApplication, otherwise we'll segfault miserably
* in SDL_CreateWindow(). Here's a stack trace if you're interested: