[Bug 752746] New: harness: Keep synchronized events in sync with buffers

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jul 22 16:23:00 PDT 2015


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

            Bug ID: 752746
           Summary: harness: Keep synchronized events in sync with buffers
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: olivier.crete at ocrete.ca
        QA Contact: gstreamer-bugs at lists.freedesktop.org
                CC: havard.graff at gmail.com, stian.selnes at gmail.com
            Blocks: 745768
     GNOME version: ---

While trying to use GstHarness to write a test, I discovered that if you use a
src harness, the serialized events get forwarded separately from the buffer.
This causes two problems: they are pushed outside the control of the test, and
they get out of sync with the buffers.

My solution is to put the serialized buffers in the same GAsyncQueue as the
buffers, and then forward the on gst_harness_pull() if there is a pad to
forward too, otherwise drop them. This also means that gst_harness_pull_event()
will no longer see them, so instead I'm proposing to add a specialized function
for that.

Another option is to just put them in the buffres queue is there is a pad to
forward to, but it seems less elegant.

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