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 383506 - Disallow CLOCK_TIME_NONE as periodic clock id interval
Disallow CLOCK_TIME_NONE as periodic clock id interval
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other All
: Normal normal
: 0.10.12
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-07 20:30 UTC by René Stadler
Modified: 2006-12-08 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Reject invalid clock times for interval of periodic ids (490 bytes, patch)
2006-12-07 20:31 UTC, René Stadler
committed Details | Review

Description René Stadler 2006-12-07 20:30:29 UTC
gst_clock_new_periodic_id happily accepts GST_CLOCK_TIME_NONE as interval, which has the funny effect of entry->time running backwards by 1 ns every time you wait() on the id.

Attaching trivial fix.
Comment 1 René Stadler 2006-12-07 20:31:58 UTC
Created attachment 77923 [details] [review]
Reject invalid clock times for interval of periodic ids
Comment 2 Wim Taymans 2006-12-08 16:12:56 UTC
        Patch by: Ren�� Stadler <mail at renestadler dot de>

        * gst/gstclock.c: (gst_clock_new_periodic_id):
        Reject invalid clock times for interval of periodic ids.
        Fixes ##383506.