Claire Mantel
2018-12-06 10:27:36 UTC
Hello,
We're building a Gstreamer application with the following pipeline:
Appsrc --> videconvert --> xvimagsink
Appsrc will in the end be a image buffer updated at 10Hz but for now we're just reading png images and putting them in a buffer that we want to push to appsrc.
We looked into this example
https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/app/appsrc-stream.c
And have a couple of questions.
- What is the difference between using the function gst_app_src_push_buffer() or emitting the signal g_signal_emit_by_name (app->appsrc, "push-buffer", buffer, &ret); (l105 in the example)
- The example uses the signal "need-data" coupled to the callback start_feed, but it's using the push mode of appsrc, which is confusing since it sounds more like a pull than a push.
Thanks in advance for the help!
Claire
We're building a Gstreamer application with the following pipeline:
Appsrc --> videconvert --> xvimagsink
Appsrc will in the end be a image buffer updated at 10Hz but for now we're just reading png images and putting them in a buffer that we want to push to appsrc.
We looked into this example
https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/app/appsrc-stream.c
And have a couple of questions.
- What is the difference between using the function gst_app_src_push_buffer() or emitting the signal g_signal_emit_by_name (app->appsrc, "push-buffer", buffer, &ret); (l105 in the example)
- The example uses the signal "need-data" coupled to the callback start_feed, but it's using the push mode of appsrc, which is confusing since it sounds more like a pull than a push.
Thanks in advance for the help!
Claire