Commit c32ea3cb authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

clock: Return FALSE in all paths that don't set out parameters in...

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.
parent 368ee8a3
......@@ -1474,7 +1474,7 @@ invalid:
{
/* no valid regression has been done, ignore the result then */
GST_CLOCK_SLAVE_UNLOCK (clock);
return TRUE;
return FALSE;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment