Skip to content

Create a new element

athairus edited this page Sep 6, 2016 · 3 revisions
  1. Clone git://anongit.freedesktop.org/gstreamer/gst-template.git
  2. Using the shell (bash/msys/msys2 on Windows) go to gst-template/gst-plugin/src
  3. REAL_NAME=YourName [email protected] ../tools/make_element LibretroElement
  4. .c and .h should appear in the folder from step 2
  5. Copy to Phoenix/backend/gstreamer/element/whatever.*
  6. Add to the CMakeLists.txt file in that folder
  7. Run formatter on .c and .h files
  8. Change .h to #pragma once
  9. Add #include "version.h" to whatever.c
  10. Change VERSION (whatever.c:279) to PHOENIX_VER_STR
  11. Fill out metadata at gst_element_class_set_details_simple and GST_PLUGIN_DEFINE
Clone this wiki locally