hi,
there're two docs about appsink: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsink.html#GstAppSinkCallbacks http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-appsink.html#GstAppSink-new-buffer the first one said the "new-buffer" return void while the second GstFlowReturn. which one is the right? the same question true for many other signal in appsink and appsrc. thanks. -- Levente "Si vis pacem para bellum!" _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Fri, 2011-09-16 at 19:45 +0200, Farkas Levente wrote:
> there're two docs about appsink: > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsink.html#GstAppSinkCallbacks > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-appsink.html#GstAppSink-new-buffer > the first one said the "new-buffer" return void while the second > GstFlowReturn. > which one is the right? > the same question true for many other signal in appsink and appsrc. Both are right. One doc is about GObject signals and their callback functions, the other is about explicitly-installed callbacks which are named the same, but invoked directly and not via the GObject signal emission mechanism. Cheers -Tim _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On 09/16/2011 07:54 PM, Tim-Philipp Müller wrote:
> On Fri, 2011-09-16 at 19:45 +0200, Farkas Levente wrote: > >> there're two docs about appsink: >> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsink.html#GstAppSinkCallbacks >> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-appsink.html#GstAppSink-new-buffer >> the first one said the "new-buffer" return void while the second >> GstFlowReturn. >> which one is the right? >> the same question true for many other signal in appsink and appsrc. > > Both are right. One doc is about GObject signals and their callback > functions, the other is about explicitly-installed callbacks which are > named the same, but invoked directly and not via the GObject signal > emission mechanism. ok so which one should have to used by appsink users? -- Levente "Si vis pacem para bellum!" _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Fri, 2011-09-16 at 20:12 +0200, Farkas Levente wrote:
> ok so which one should have to used by appsink users? You can use whichever you prefer (if you're using C, anyway). The direct callbacks have less overhead of course. -Tim _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |