Compare value, not the address of variable
Removed doubele enum definition tvh_input_stream_stats_scale_t and signal_status_scale_t
Corrected some unsigned int comparisons