[Bug 635784] ringbuffer: make sure to not start if the may_start flag is FALSE

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Apr 15 23:30:29 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=635784
  GStreamer | gst-plugins-base | unspecified

--- Comment #12 from Håvard Graff (hgr) <havard.graff at tandberg.com> 2011-04-16 06:30:27 UTC ---
If you want a test-case, all I do is to instantiate a src that inherits from
BaseAudioSrc, and then do something like this:

for (i = 0; i < 10000000; i++)
{
  gst_element_set_state (src, GST_STATE_PLAYING);
  g_usleep (G_USEC_PER_SEC / 10000);
  gst_element_set_state (src, GST_STATE_PAUSED);
  g_usleep (G_USEC_PER_SEC / 10000);
  g_print("\r%d", i);
}

If the counting stops, I´ve got the deadlock. Without the patch it stops within
a minute. With, I have ran it for 5 hours and no problem.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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