Fix for #647. In the logplayer, the data stream is read ahead for messages, which is used to determine the size of the output bytearrays. Previously, this wasn't done correctly resulting in non-ideal behavior. Now, the next message is scanned properly, so the only bytearrays that are emitted from QGCMAVLinkLogPlayer are MAVLink messages in their entirety. This also has the benefit of skipping invalid/corrupted messages in the log that's being played back.
Fix for #647.
In the logplayer, the data stream is read ahead for messages, which is used to determine the size of the output bytearrays. Previously, this wasn't done correctly resulting in non-ideal behavior. Now, the next message is scanned properly, so the only bytearrays that are emitted from QGCMAVLinkLogPlayer are MAVLink messages in their entirety. This also has the benefit of skipping invalid/corrupted messages in the log that's being played back.

hejunbok/qgroundcontrol,remspoor/qgroundcontrol,iidioter/qgroundcontrol,kd0aij/qgroundcontrol,kd0aij/qgroundcontrol,nado1688/qgroundcontrol,cfelipesouza/qgroundcontrol,fizzaly/qgroundcontrol,mihadyuk/qgroundcontrol,devbharat/qgroundcontrol,Hunter522/qgroundcontrol,cfelipesouza/qgroundcontrol,dagoodma/qgroundcontrol,jy723/qgroundcontrol,TheIronBorn/qgroundcontrol,catch-twenty-two/qgroundcontrol,Hunter522/qgroundcontrol,greenoaktree/qgroundcontrol,CornerOfSkyline/qgroundcontrol,LIKAIMO/qgroundcontrol,devbharat/qgroundcontrol,nado1688/qgroundcontrol,remspoor/qgroundcontrol,devbharat/qgroundcontrol,fizzaly/qgroundcontrol,Hunter522/qgroundcontrol,scott-eddy/qgroundcontrol,RedoXyde/PX4_qGCS,LIKAIMO/qgroundcontrol,cfelipesouza/qgroundcontrol,Hunter522/qgroundcontrol,catch-twenty-two/qgroundcontrol,nado1688/qgroundcontrol,catch-twenty-two/qgroundcontrol,caoxiongkun/qgroundcontrol,nado1688/qgroundcontrol,scott-eddy/qgroundcontrol,catch-twenty-two/qgroundcontrol,hejunbok/qgroundcontrol,lis-epfl/qgroundcontrol,UAVenture/qgroundcontrol,caoxiongkun/qgroundcontrol,RedoXyde/PX4_qGCS,BMP-TECH/qgroundcontrol,mihadyuk/qgroundcontrol,jy723/qgroundcontrol,CornerOfSkyline/qgroundcontrol,BMP-TECH/qgroundcontrol,hejunbok/qgroundcontrol,greenoaktree/qgroundcontrol,UAVenture/qgroundcontrol,UAVenture/qgroundcontrol,lis-epfl/qgroundcontrol,ethz-asl/qgc_asl,iidioter/qgroundcontrol,UAVenture/qgroundcontrol,CornerOfSkyline/qgroundcontrol,BMP-TECH/qgroundcontrol,Hunter522/qgroundcontrol,remspoor/qgroundcontrol,LIKAIMO/qgroundcontrol,hejunbok/qgroundcontrol,devbharat/qgroundcontrol,remspoor/qgroundcontrol,cfelipesouza/qgroundcontrol,jy723/qgroundcontrol,cfelipesouza/qgroundcontrol,scott-eddy/qgroundcontrol,josephlewis42/UDenverQGC2,jy723/qgroundcontrol,iidioter/qgroundcontrol,hejunbok/qgroundcontrol,greenoaktree/qgroundcontrol,dagoodma/qgroundcontrol,ethz-asl/qgc_asl,remspoor/qgroundcontrol,TheIronBorn/qgroundcontrol,catch-twenty-two/qgroundcontrol,UAVenture/qgroundcontrol,RedoXyde/PX4_qGCS,kd0aij/qgroundcontrol,devbharat/qgroundcontrol,jy723/qgroundcontrol,nado1688/qgroundcontrol,TheIronBorn/qgroundcontrol,caoxiongkun/qgroundcontrol,caoxiongkun/qgroundcontrol,lis-epfl/qgroundcontrol,mihadyuk/qgroundcontrol,dagoodma/qgroundcontrol,greenoaktree/qgroundcontrol,ethz-asl/qgc_asl,nado1688/qgroundcontrol,jy723/qgroundcontrol,LIKAIMO/qgroundcontrol,cfelipesouza/qgroundcontrol,iidioter/qgroundcontrol,josephlewis42/UDenverQGC2,kd0aij/qgroundcontrol,LIKAIMO/qgroundcontrol,TheIronBorn/qgroundcontrol,fizzaly/qgroundcontrol,iidioter/qgroundcontrol,greenoaktree/qgroundcontrol,fizzaly/qgroundcontrol,fizzaly/qgroundcontrol,caoxiongkun/qgroundcontrol,Hunter522/qgroundcontrol,lis-epfl/qgroundcontrol,BMP-TECH/qgroundcontrol,mihadyuk/qgroundcontrol,LIKAIMO/qgroundcontrol,dagoodma/qgroundcontrol,dagoodma/qgroundcontrol,CornerOfSkyline/qgroundcontrol,BMP-TECH/qgroundcontrol,UAVenture/qgroundcontrol,ethz-asl/qgc_asl,BMP-TECH/qgroundcontrol,scott-eddy/qgroundcontrol,remspoor/qgroundcontrol,caoxiongkun/qgroundcontrol,RedoXyde/PX4_qGCS,iidioter/qgroundcontrol,josephlewis42/UDenverQGC2,RedoXyde/PX4_qGCS,RedoXyde/PX4_qGCS,fizzaly/qgroundcontrol,TheIronBorn/qgroundcontrol,hejunbok/qgroundcontrol,CornerOfSkyline/qgroundcontrol,mihadyuk/qgroundcontrol,TheIronBorn/qgroundcontrol,dagoodma/qgroundcontrol,mihadyuk/qgroundcontrol,scott-eddy/qgroundcontrol,ethz-asl/qgc_asl,kd0aij/qgroundcontrol,kd0aij/qgroundcontrol,devbharat/qgroundcontrol,catch-twenty-two/qgroundcontrol,lis-epfl/qgroundcontrol,greenoaktree/qgroundcontrol,josephlewis42/UDenverQGC2,scott-eddy/qgroundcontrol,CornerOfSkyline/qgroundcontrol