[vlc-commits] remove useless assignment

Sébastien Escudier git at videolan.org
Sun Feb 24 18:18:05 CET 2013


vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Sun Feb 24 18:13:58 2013 +0100| [70180182273c34d8af47939bfac2b75de96dcc76] | committer: Sébastien Escudier

remove useless assignment

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70180182273c34d8af47939bfac2b75de96dcc76
---

 modules/access/live555.cpp |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index d0b98ce..29a67f6 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -953,9 +953,7 @@ static int SessionsSetup( demux_t *p_demux )
                 else if( !strcmp( sub->codecName(), "SPEEX" ) )
                 {
                     tk->fmt.i_codec = VLC_FOURCC( 's', 'p', 'x', 'r' );
-                    if ( sub->rtpTimestampFrequency() )
-                        tk->fmt.audio.i_rate = sub->rtpTimestampFrequency();
-                    else
+                    if ( tk->fmt.audio.i_rate == 0 )
                     {
                         msg_Warn( p_demux,"Using 8kHz as default sample rate." );
                         tk->fmt.audio.i_rate = 8000;



More information about the vlc-commits mailing list