[Bug 765728] adaptivedemux: Segfault since "use realtime_clock for waiting for a condition" commit

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu May 5 12:28:55 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=765728

--- Comment #28 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
> The gst_adaptive_demux_wait_until() function is replacing a call to
> g_cond_wait(). Therefore that while() { } logic should already exist in the
> functions that call gst_adaptive_demux_wait_until().

Good point, you're right.


> > [whether GstAdaptiveDemuxTimer can be stack-allocated]
>
> Yes, I think that is a potential problem. I've created a new
> patch that uses a reference counted object.

Great. Do you think you could make it a mini object instead of a GObject? Or
simply a custom ref/unref with g_atomic_int_*() wrapping the freeing?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list