Skip to content

androidmedia: allow multiple implementations of gstamc{codec,format}

When implementing NDK media support, it would be useful to also have JNI implementation in the same binary as NDK media compatibility is lower. As such, implement a rudimentary vtable system for gstamc-codec and gstamc-format, and allow choosing the implementation at static_init() time.

Related: gst-plugins-bad#1242


I considered using GObject's inheritance but didn't go for it because a.) it would be enough to pick an implementation at a static init time and stick with it, and b.) doing it this way reduces the amount of code that needs to be touched - I suppose.

Edited by Ratchanan Srirattanamet

Merge request reports