Commit 91996cce authored by Felix Paul Kühne's avatar Felix Paul Kühne

* don't try to open real streams, but quit before triggering any errors....

* don't try to open real streams, but quit before triggering any errors. thanks to thedj for pointing this out.
parent eb04ab94
...@@ -402,6 +402,13 @@ static int Open ( vlc_object_t *p_this ) ...@@ -402,6 +402,13 @@ static int Open ( vlc_object_t *p_this )
bInit = sub->initiate( 4 ); /* Constant ? */ bInit = sub->initiate( 4 ); /* Constant ? */
else else
bInit = sub->initiate(); bInit = sub->initiate();
if( strcasestr( sub->codecName(), "REAL" ) )
{
msg_Info( p_demux, "real codec detected, using real-RTSP instead" );
delete iter;
goto error;
}
if( !bInit ) if( !bInit )
{ {
...@@ -440,8 +447,7 @@ static int Open ( vlc_object_t *p_this ) ...@@ -440,8 +447,7 @@ static int Open ( vlc_object_t *p_this )
/* The PLAY */ /* The PLAY */
if( !p_sys->rtsp->playMediaSession( *p_sys->ms ) ) if( !p_sys->rtsp->playMediaSession( *p_sys->ms ) )
{ {
//msg_Err( p_demux, "PLAY failed %s", p_sys->env->getResultMsg() ); msg_Err( p_demux, "PLAY failed %s", p_sys->env->getResultMsg() );
msg_Warn( p_demux, "RTSP-stream doesn't have any timing info" );
delete iter; delete iter;
goto error; goto error;
} }
......
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