Commit babf7fcc authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt/Sout: avoid a possible crash

parent 7087fab2
......@@ -224,9 +224,12 @@ void SoutDialog::updateMRL()
for( int i = 1; i < ui.destTab->count(); i++ )
{
VirtualDestBox *vdb = qobject_cast<VirtualDestBox *>(ui.destTab->widget( i ));
QString tempMRL = vdb->getMRL( qs_mux );
if( !vdb )
continue;
QString tempMRL = vdb->getMRL( qs_mux );
if( tempMRL.isEmpty() ) continue;
if( multi )
smrl.option( "dst", tempMRL );
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment