*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/*****************************************************************************
* Local variables (mutex-protected).
/*****************************************************************************
* Local variables (mutex-protected).
- add_bool( "qte-guiserver", 0, NULL, STANDALONE_TEXT, STANDALONE_LONGTEXT, VLC_FALSE );
+ add_bool( "qte-guiserver", 0, NULL, STANDALONE_TEXT, STANDALONE_LONGTEXT, false );
*****************************************************************************/
static int Open( vlc_object_t *p_this )
{
*****************************************************************************/
static int Open( vlc_object_t *p_this )
{
/* Launch the QApplication::exec() thread. It will not return until the
* application is properly initialized, which ensures us thread safety. */
if( vlc_thread_create( p_qte_main, "qte_main", QteMain,
/* Launch the QApplication::exec() thread. It will not return until the
* application is properly initialized, which ensures us thread safety. */
if( vlc_thread_create( p_qte_main, "qte_main", QteMain,
vlc_object_attach( p_qte_main, p_this );
msg_Dbg( p_this, "qte_main running" );
vlc_object_attach( p_qte_main, p_this );
msg_Dbg( p_this, "qte_main running" );
*****************************************************************************/
static void Close( vlc_object_t *p_this )
{
*****************************************************************************/
static void Close( vlc_object_t *p_this )
{
msg_Dbg( p_this, "Detaching qte_main" );
vlc_object_detach( p_qte_main );
msg_Dbg( p_this, "Detaching qte_main" );
vlc_object_detach( p_qte_main );
* this part of the interface is in a separate thread so that we can call
* qte_main() from within it without annoying the rest of the program.
*****************************************************************************/
* this part of the interface is in a separate thread so that we can call
* qte_main() from within it without annoying the rest of the program.
*****************************************************************************/
if( config_GetInt( p_this, "qte-guiserver" ) )
{
msg_Dbg( p_this, "Running as Qt Embedded standalone GuiServer" );
if( config_GetInt( p_this, "qte-guiserver" ) )
{
msg_Dbg( p_this, "Running as Qt Embedded standalone GuiServer" );
}
/* Run as standalone GuiServer or as GuiClient. */
QApplication* pApp = new QApplication(i_argc, NULL,
(p_this->b_gui_server ? (QApplication::GuiServer):(QApplication::GuiClient)) );
}
/* Run as standalone GuiServer or as GuiClient. */
QApplication* pApp = new QApplication(i_argc, NULL,
(p_this->b_gui_server ? (QApplication::GuiServer):(QApplication::GuiClient)) );
{
p_this->p_qte_application = pApp;
}
QWidget* pWidget = new QWidget(0, _("video") );
{
p_this->p_qte_application = pApp;
}
QWidget* pWidget = new QWidget(0, _("video") );