[Bug 770953] gstclock: segmentation fault when unschedule

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Sep 7 08:07:51 UTC 2016


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

--- Comment #4 from Miguel París Díaz <mparisdiaz at gmail.com> ---
Hello,
the patch also makes sense from my point of view.

@slomo, now we are using a data structure to keep the ClockId until we need it,
but the Clock is unrefered after creating the ClockId as you can see in the
next code.
Without the @GstBlub's patch, should we keep the Clock ref in the data
structure until the ClockId is unshceduled?

ClockId creation:
  GstClock *clock;
  clock = gst_system_clock_obtain ();
  init_time = gst_clock_get_time (clock);
  clock_id = gst_clock_new_periodic_id (data->clock, init_time, 2 *
GST_SECOND);
  g_object_unref (clock);

Then, when the ClockId is not longer needed:
  gst_clock_id_unschedule (data->clock_id);
  gst_clock_id_unref (data->clock_id);

-- 
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