audiobasesink: make _get_time more threadsafe
authorWim Taymans <wtaymans@redhat.com>
Tue, 21 Jan 2014 10:21:56 +0000 (11:21 +0100)
committerWim Taymans <wtaymans@redhat.com>
Tue, 21 Jan 2014 10:25:18 +0000 (11:25 +0100)
commit6a88d6f8cdf640d827f1082e4f498fc375fad781
tree81b38d02e2fcc28f7890391214ae08f88413e73c
parent4e3d101aa854cfee633a9689efeb75e5001baa5e
audiobasesink: make _get_time more threadsafe

We call the _get_time function from the provided clock and we don't lock
the sink object for performance reasons. Make sure we only read and
check variables once so that they don't change while we are executing
the code.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=720661
gst-libs/gst/audio/gstaudiobasesink.c