Fix for smooth streaming videos longer than 214 seconds.

This commit is contained in:
Thulinma 2012-11-20 10:52:22 +01:00
parent 26d9a6cabf
commit 63eba7f017

View file

@ -100,7 +100,7 @@ namespace Connector_HTTP{
std::string Quality; std::string Quality;
int Segment = -1; int Segment = -1;
int ReqFragment = -1; long long int ReqFragment = -1;
int temp; int temp;
std::string tempStr; std::string tempStr;
int Flash_RequestPending = 0; int Flash_RequestPending = 0;
@ -150,7 +150,7 @@ namespace Connector_HTTP{
if( tempStr[0] == 'A' ) { wantsAudio = true; } if( tempStr[0] == 'A' ) { wantsAudio = true; }
if( tempStr[0] == 'V' ) { wantsVideo = true; } if( tempStr[0] == 'V' ) { wantsVideo = true; }
tempStr = tempStr.substr( tempStr.find("(") + 1 ); tempStr = tempStr.substr( tempStr.find("(") + 1 );
ReqFragment = atoi( tempStr.substr(0,tempStr.find(")")).c_str() ); ReqFragment = atoll( tempStr.substr(0,tempStr.find(")")).c_str() );
#if DEBUG >= 4 #if DEBUG >= 4
printf( "Quality: %s, Frag %d\n", Quality.c_str(), ( ReqFragment / 10000 ) ); printf( "Quality: %s, Frag %d\n", Quality.c_str(), ( ReqFragment / 10000 ) );
#endif #endif