*****************************************************************************/
extern "C"
{
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
+#include <vlc_plugin.h>
}
#include <qapplication.h>
"from normal Qt.")
vlc_module_begin();
- set_description( _("Qt Embedded GUI helper") );
+ set_description( N_("Qt Embedded GUI helper") );
set_capability( "gui-helper", 90 );
- add_bool( "qte-guiserver", 0, NULL, STANDALONE_TEXT, STANDALONE_LONGTEXT, VLC_FALSE );
+ add_bool( "qte-guiserver", 0, NULL, STANDALONE_TEXT, STANDALONE_LONGTEXT, false );
add_shortcut( "qte" );
set_callbacks( Open, Close );
vlc_module_end();
/* 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_THREAD_PRIORITY_LOW, VLC_TRUE ) )
+ VLC_THREAD_PRIORITY_LOW, true ) )
{
- vlc_object_destroy( p_qte_main );
+ vlc_object_release( p_qte_main );
i_refcount--;
vlc_mutex_unlock( lock );
return VLC_ETHREAD;
msg_Dbg( p_this, "Detaching qte_main" );
vlc_object_detach( p_qte_main );
- vlc_object_destroy( p_qte_main );
+ vlc_object_release( p_qte_main );
p_qte_main = NULL;
vlc_mutex_unlock( lock );
{
int i_argc = 1;
- p_this->b_gui_server = VLC_FALSE;
+ p_this->b_gui_server = false;
if( config_GetInt( p_this, "qte-guiserver" ) )
{
msg_Dbg( p_this, "Running as Qt Embedded standalone GuiServer" );
- p_this->b_gui_server = VLC_TRUE;
+ p_this->b_gui_server = true;
}
/* Run as standalone GuiServer or as GuiClient. */