clock: Return FALSE in all paths that don't set out parameters in gst_clock_add_observation_unapplied()

It returned TRUE when regression failed, while not setting any of the out
parameters. This caused uninitialized data from the stack to be used for
setting the clock calibration.
This commit is contained in:
Sebastian Dröge 2016-04-01 22:41:51 +03:00
parent 368ee8a336
commit c32ea3cb58

View file

@ -1474,7 +1474,7 @@ invalid:
{
/* no valid regression has been done, ignore the result then */
GST_CLOCK_SLAVE_UNLOCK (clock);
return TRUE;
return FALSE;
}
}