#ifndef _SOUT_DIALOG_H_
#define _SOUT_DIALOG_H_
-#include <vlc/vlc.h>
-#include <vlc_streaming.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
#include "ui/sout.h"
#include "util/qvlcframe.hpp"
{
Q_OBJECT;
public:
- static SoutDialog * getInstance( QWidget *parent,
- intf_thread_t *p_intf,
- bool transcode_only )
+ static SoutDialog* getInstance( QWidget *parent, intf_thread_t *p_intf,
+ bool transcode_only )
{
if( !instance )
instance = new SoutDialog( parent, p_intf, transcode_only );
else
{
- instance->setParent( parent );
+ /* Recenter the dialog on the parent */
+ instance->setParent( parent, Qt::Dialog );
if( transcode_only != instance->b_transcode_only )
{
instance->toggleSout();
}
}
return instance;
- };
+ }
- virtual ~SoutDialog();
+ virtual ~SoutDialog(){}
QString getMrl(){ return mrl; }
private:
+ Ui::Sout ui;
+ static SoutDialog *instance;
SoutDialog( QWidget* parent, intf_thread_t *,
bool _transcode_only = false );
- static SoutDialog *instance;
-
- Ui::Sout ui;
QPushButton *okButton;
QString mrl;
bool b_transcode_only;