Buffer conn timeout fix
This commit is contained in:
parent
82c116716a
commit
de701fc58e
4 changed files with 21 additions and 12 deletions
|
@ -55,7 +55,9 @@ int main( int argc, char * argv[] ) {
|
|||
//new FLV file, read the file header again.
|
||||
FLV_Readheader();
|
||||
} else {
|
||||
FLV_GetPacket(ringbuf[current_buffer]->FLV);
|
||||
if (!FLV_GetPacket(ringbuf[current_buffer]->FLV)){
|
||||
break;//wrong packet? something bust be broken. End program!
|
||||
}
|
||||
packtype = ringbuf[current_buffer]->FLV->data[0];
|
||||
//store metadata, if available
|
||||
if (packtype == 0x12){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue