From 63eba7f01794efd6f09d494a1ffecb42802601ee Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 20 Nov 2012 10:52:22 +0100 Subject: [PATCH] Fix for smooth streaming videos longer than 214 seconds. --- src/conn_http_smooth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conn_http_smooth.cpp b/src/conn_http_smooth.cpp index 6abb3fbb..4aca8660 100644 --- a/src/conn_http_smooth.cpp +++ b/src/conn_http_smooth.cpp @@ -100,7 +100,7 @@ namespace Connector_HTTP{ std::string Quality; int Segment = -1; - int ReqFragment = -1; + long long int ReqFragment = -1; int temp; std::string tempStr; int Flash_RequestPending = 0; @@ -150,7 +150,7 @@ namespace Connector_HTTP{ if( tempStr[0] == 'A' ) { wantsAudio = true; } if( tempStr[0] == 'V' ) { wantsVideo = true; } 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 printf( "Quality: %s, Frag %d\n", Quality.c_str(), ( ReqFragment / 10000 ) ); #endif