On Tue, 8 Mar 2016 22:08:51 +0100, Mike Wey wrote:

Do you know a good example of how it's usually done in c?

The GStreamer Git repositories are the place to go. Examples on the Web generally, especially StackOverflow that many rely on, are not actually reliable. There are a couple of GStreamer examples in the GtkD repository already, and they have been helpful. I guess there just need to be a few more.

I can say that using GStreamer as the GStreamer folk think it should be used, works much better in D than in C, I think C is just thw wrong language for any form of application programming. D code just reads better and the GC is a huge win. Assuming it never stops the world for more than a few picoseconds. Looking at GStreamerMM code now, it just feels wrong: attempting to reify as types, plugins that are dynamically loaded looks and feels wrong now!