clapper-app: Add GStreamer pipeline preview

Allow to preview GStreamer pipeline while playing content.
This makes it easier to check what is used underneath.
This commit is contained in:
Rafał Dzięgiel
2025-02-16 17:35:58 +01:00
parent 681d5b8699
commit dca8fbd336
8 changed files with 191 additions and 0 deletions

View File

@@ -94,6 +94,17 @@ clapperapp_c_args = [
'-DGST_USE_UNSTABLE_API',
]
pp_option = get_option('pipeline-preview')
if not pp_option.disabled()
if cgraph_dep.found() and gvc_dep.found()
clapperapp_c_args += ['-DHAVE_GRAPHVIZ']
clapperapp_deps += [cgraph_dep, gvc_dep]
elif pp_option.enabled()
error('pipeline-preview option was enabled, but required dependencies were not found')
endif
endif
is_windows = ['windows'].contains(host_machine.system())
if is_windows