#include <QFileDialog>
#include <QToolButton>
-SoutDialog* SoutDialog::instance = NULL;
-
SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, QString inputMRL )
: QVLCDialog( parent, _p_intf )
{
{
Q_OBJECT;
public:
- static SoutDialog* getInstance( QWidget *parent, intf_thread_t *p_intf,
- QString mrl = "" )
- {
- if( !instance )
- instance = new SoutDialog( parent, p_intf, mrl );
- else
- {
- /* Recenter the dialog on the parent */
- instance->setParent( parent, Qt::Dialog );
- }
- return instance;
- }
-
+ SoutDialog( QWidget* parent, intf_thread_t *, QString mrl = "");
virtual ~SoutDialog(){}
QString getMrl(){ return mrl; }
private:
Ui::Sout ui;
- static SoutDialog *instance;
- SoutDialog( QWidget* parent, intf_thread_t *, QString mrl );
QString mrl;
QPushButton *okButton;
void VLMDialog::selectOutput()
{
- SoutDialog *s = SoutDialog::getInstance( this, p_intf );
+ SoutDialog *s = new SoutDialog( this, p_intf );
if( s->exec() == QDialog::Accepted )
ui.outputLedit->setText( s->getMrl() );
}
/* Stream */
if( !b_transcode_only )
{
- SoutDialog *s = SoutDialog::getInstance( parent, p_intf, mrl );
+ SoutDialog *s = new SoutDialog( parent, p_intf, mrl );
if( s->exec() == QDialog::Accepted )
{
psz_soutoption = strdup( qtu( s->getMrl() ) );