FernetMenta / vdr-plugin-vnsiserver

VDR plugin to handle XBMC clients.
GNU General Public License v2.0
16 stars 33 forks source link

demuxer.c:628]: (style) Suspicious condition #50

Closed dcb314 closed 8 years ago

dcb314 commented 8 years ago

demuxer.c:628]: (style) Suspicious condition (assignment + comparison); Clarify expression with parentheses.

Source code is

while (len = m_VideoBuffer->Read(&buf, TS_SIZE, m_endTime, m_wrapTime) == TS_SIZE)

Maybe better code

while ((len = m_VideoBuffer->Read(&buf, TS_SIZE, m_endTime, m_wrapTime)) == TS_SIZE)

FernetMenta commented 8 years ago

Thanks, I will correct this soon.

FernetMenta commented 8 years ago

fixed in master now. thanks