After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 134227 - [api] gst_clock_id_wait_async, wrong return code for default clock
[api] gst_clock_id_wait_async, wrong return code for default clock
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other opensolaris
: Normal normal
: 0.9.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-12 15:35 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2005-07-20 17:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Sauer (gstreamer, gtkdoc dev) 2004-02-12 15:35:42 UTC
if one uses
  clock = gst_bin_get_clock (GST_BIN (thread));
  clockId = gst_clock_new_periodic_id(clock, 0, GST_SECOND*1 );
  gst_clock_id_wait_async(clockId, &clockFunc, NULL);

then
  gst_clock_id_wait_async() returns
  GST_CLOCK_EARLY instead of GST_CLOCK_UNSUPPORTED

when checking the flags of the clock via
  GST_CLOCK_FLAGS(clock)
it reports 0

when setting a different clock e.g.
  gst_bin_use_clock(GST_BIN (thread), gst_system_clock_obtain());
then 
  gst_clock_id_wait_async() returns GST_CLOCK_UNSUPPORTED
Comment 1 Wim Taymans 2004-11-02 16:34:59 UTC
The behavior of the system clock is normal, it does not support async
notifications. The behaviour of the other clock (most likely some audio clock)
is not correct. It does support async notifications but it does not set the
flags correctly. It returns _EARLY because there is no return value that says
something like _ASYNC. 
Comment 2 Andy Wingo 2005-07-15 08:49:42 UTC
Wim, is this still a valid bug in 0.9?
Comment 3 Wim Taymans 2005-07-15 08:56:33 UTC
There is a check for all possible clock wait functions that does not reproduce
this problem anymore.
Comment 4 Ronald Bultje 2005-07-20 17:28:24 UTC
Reporting fixed.