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
...@@ -403,6 +403,13 @@ static int Open ( vlc_object_t *p_this ) ...@@ -403,6 +403,13 @@ static int Open ( vlc_object_t *p_this )
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 )
{ {
msg_Warn( p_demux, "RTP subsession '%s/%s' failed (%s)", msg_Warn( p_demux, "RTP subsession '%s/%s' failed (%s)",
...@@ -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