move seq and rtpTime declarations outside conditional

This commit is contained in:
Andrew Bauer 2014-12-01 17:21:49 -06:00
parent 0099b54248
commit a6a779978a
1 changed files with 2 additions and 2 deletions

View File

@ -567,6 +567,8 @@ int RtspThread::run()
} }
} }
int seq = 0;
unsigned long rtpTime = 0;
if ( rtpInfo.empty() ) if ( rtpInfo.empty() )
{ {
Debug( 1, "RTP Info Empty. Starting values for Sequence and Rtptime shall be zero."); Debug( 1, "RTP Info Empty. Starting values for Sequence and Rtptime shall be zero.");
@ -575,8 +577,6 @@ int RtspThread::run()
{ {
Debug( 2, "Got RTP Info %s", rtpInfo.c_str() ); Debug( 2, "Got RTP Info %s", rtpInfo.c_str() );
int seq = 0;
unsigned long rtpTime = 0;
parts = split( rtpInfo.c_str(), ";" ); parts = split( rtpInfo.c_str(), ";" );
for ( size_t i = 0; i < parts.size(); i++ ) for ( size_t i = 0; i < parts.size(); i++ )
{ {