[Bug 796871] New: Basic tutorial 8 (appsrc/appsink): Should directly write data from need-data signal

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jul 25 07:43:45 UTC 2018


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

            Bug ID: 796871
           Summary: Basic tutorial 8 (appsrc/appsink): Should directly
                    write data from need-data signal
    Classification: Platform
           Product: GStreamer
           Version: unspecified
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: documentation
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: slomo at coaxion.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Currently it schedules an idle source on the mainloop from need-data and stops
that idle source from enough-data. This causes people to copy this pattern
everywhere while it is usually not needed at all.

In real applications there are usually two options that make sense:

1) Directly push into the appsrc from some thread where the data is available
anyway

2) Use the need-data signal to produce the data and push it into the appsrc.
It's called from the basesrc thread so that's exactly where it makes sense to
produce the data

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