diff --git a/Connector_RTMP/chunkstream.cpp b/Connector_RTMP/chunkstream.cpp index 3efc8d39..1c2056e6 100644 --- a/Connector_RTMP/chunkstream.cpp +++ b/Connector_RTMP/chunkstream.cpp @@ -492,7 +492,7 @@ chunkpack getWholeChunk(){ free(ret);//cleanup returned chunk return gwc_complete; } - if (!std::cin.good()){ + if (feof(stdin)){ gwc_complete.msg_type_id = 0; return gwc_complete; }