move seq and rtpTime declarations outside conditional
This commit is contained in:
parent
0099b54248
commit
a6a779978a
|
@ -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++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue