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

Qt/Sout: avoid a possible crash

(cherry picked from commit babf7fcca704ae8afe49c8887ca0435e3f2712bc)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a32cc02f
...@@ -224,9 +224,12 @@ void SoutDialog::updateMRL() ...@@ -224,9 +224,12 @@ void SoutDialog::updateMRL()
for( int i = 1; i < ui.destTab->count(); i++ ) for( int i = 1; i < ui.destTab->count(); i++ )
{ {
VirtualDestBox *vdb = qobject_cast<VirtualDestBox *>(ui.destTab->widget( 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( tempMRL.isEmpty() ) continue;
if( multi ) if( multi )
smrl.option( "dst", tempMRL ); smrl.option( "dst", tempMRL );
else 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