From 758313e208eec4be3e26e45555d0f5bb9bc1c792 Mon Sep 17 00:00:00 2001 From: Tinkesh Kumar <30948135+Tinkesh-Kumar@users.noreply.github.com> Date: Sun, 4 May 2025 14:22:01 +0530 Subject: [PATCH 1/4] Update meson.build --- meson.build | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index e6bc29a..9256fd6 100644 --- a/meson.build +++ b/meson.build @@ -4,14 +4,33 @@ project('gstemeautodecryptbin', 'c', default_options : [ 'warning_level=1', 'buildtype=debugoptimized' ]) -gst_version = '1.0' +# Configuration data for config.h +conf_data = configuration_data() +conf_data.set_quoted('PACKAGE', 'gstemeautodecryptbin') +conf_data.set_quoted('VERSION', meson.project_version()) +conf_data.set('GST_LICENSE', '"LGPL"') +conf_data.set('PACKAGE_BUGREPORT', '"https://github.com/yourusername/gstemeautodecryptbin/issues"') +conf_data.set('PACKAGE_NAME', '"GStreamer EME Auto Decrypt Bin"') +conf_data.set('PACKAGE_STRING', '"GStreamer EME Auto Decrypt Bin @0@"'.format(meson.project_version())) +conf_data.set('PACKAGE_TARNAME', '"gstemeautodecryptbin"') +conf_data.set('PACKAGE_URL', '"https://github.com/yourusername/gstemeautodecryptbin"') +conf_data.set('PACKAGE_VERSION', '"@0@"'.format(meson.project_version())) + +# Generate config.h +configure_file(output : 'config.h', + configuration : conf_data) + +# Include directories +configinc = include_directories('.') +gst_version = '1.0' cc = meson.get_compiler('c') +# Dependencies gst_dep = dependency('gstreamer-1.0') gstbase_dep = dependency('gstreamer-base-1.0') soup_dep = dependency('libsoup-3.0') -eme_dep = dependency('gstreamer-eme-1.0') # Add this line +eme_dep = dependency('gstreamer-eme-1.0') # Define GST_USE_UNSTABLE_API to suppress warnings add_project_arguments('-DGST_USE_UNSTABLE_API', language: 'c') @@ -26,4 +45,8 @@ plugin = shared_library('gstemeautodecryptbin', install : true, install_dir : get_option('libdir') / 'gstreamer-1.0', c_args : ['-DHAVE_CONFIG_H'], + include_directories : [configinc], ) + +# Install plugin description if needed +# install_data('gstemeautodecryptbin.plugin', install_dir : get_option('libdir') / 'gstreamer-1.0') From 638d8571f98fbd4a32bb1a19c7f7abff25f95617 Mon Sep 17 00:00:00 2001 From: Tinkesh Kumar <30948135+Tinkesh-Kumar@users.noreply.github.com> Date: Sun, 4 May 2025 14:41:09 +0530 Subject: [PATCH 2/4] Update meson.build --- meson.build | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 9256fd6..6c42f39 100644 --- a/meson.build +++ b/meson.build @@ -30,7 +30,8 @@ cc = meson.get_compiler('c') gst_dep = dependency('gstreamer-1.0') gstbase_dep = dependency('gstreamer-base-1.0') soup_dep = dependency('libsoup-3.0') -eme_dep = dependency('gstreamer-eme-1.0') +eme_dep = dependency('gstreamer-eme-1.0') +xml_dep = dependency('libxml-2.0') # Add libxml2 dependency # Define GST_USE_UNSTABLE_API to suppress warnings add_project_arguments('-DGST_USE_UNSTABLE_API', language: 'c') @@ -41,12 +42,9 @@ plugin_sources = [ plugin = shared_library('gstemeautodecryptbin', plugin_sources, - dependencies : [gst_dep, gstbase_dep, soup_dep, eme_dep], + dependencies : [gst_dep, gstbase_dep, soup_dep, eme_dep, xml_dep], # Add xml_dep here install : true, install_dir : get_option('libdir') / 'gstreamer-1.0', c_args : ['-DHAVE_CONFIG_H'], include_directories : [configinc], ) - -# Install plugin description if needed -# install_data('gstemeautodecryptbin.plugin', install_dir : get_option('libdir') / 'gstreamer-1.0') From 8cf35828d706264bee009198e8912ba14e946b14 Mon Sep 17 00:00:00 2001 From: Tinkesh Kumar <30948135+Tinkesh-Kumar@users.noreply.github.com> Date: Sun, 4 May 2025 14:41:30 +0530 Subject: [PATCH 3/4] Update gstemeautodecryptbin.c --- gstemeautodecryptbin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gstemeautodecryptbin.c b/gstemeautodecryptbin.c index 04c9dd8..48b8997 100644 --- a/gstemeautodecryptbin.c +++ b/gstemeautodecryptbin.c @@ -6,6 +6,9 @@ #include // For GstMediaKeySession type #include +#include +#include + #include "gstemeautodecryptbin.h" GST_DEBUG_CATEGORY_STATIC (gst_eme_auto_decrypt_bin_debug); From 28313cfea7c81ef32ce5c2b6d3d347963fadb28c Mon Sep 17 00:00:00 2001 From: Tinkesh Kumar <30948135+Tinkesh-Kumar@users.noreply.github.com> Date: Sun, 4 May 2025 15:47:55 +0530 Subject: [PATCH 4/4] Update gstemeautodecryptbin.c --- gstemeautodecryptbin.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gstemeautodecryptbin.c b/gstemeautodecryptbin.c index 48b8997..00b3e0f 100644 --- a/gstemeautodecryptbin.c +++ b/gstemeautodecryptbin.c @@ -6,8 +6,6 @@ #include // For GstMediaKeySession type #include -#include -#include #include "gstemeautodecryptbin.h"