clock: Return FALSE in all paths that don't set out parameters in gst_clock_add_obser...
authorSebastian Dröge <sebastian@centricular.com>
Fri, 1 Apr 2016 19:41:51 +0000 (22:41 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 1 Apr 2016 22:34:46 +0000 (01:34 +0300)
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.

gst/gstclock.c

index 7e9be2f..3f6d891 100644 (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;
   }
 }