From ae890584827ae8b4ad53296edff3f33308db643b Mon Sep 17 00:00:00 2001 From: Hyunil Date: Wed, 18 Mar 2020 18:15:55 +0900 Subject: [PATCH] sctp: enable sctpdec and sctpenc plugins Change-Id: Ifcd70387b5d3f36dcc980f5ee5a99f335440dc31 Signed-off-by: Hyunil --- gst-libs/gst/Makefile.am | 12 ++++++------ packaging/gst-plugins-bad.spec | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gst-libs/gst/Makefile.am b/gst-libs/gst/Makefile.am index 1594402f9..c4f02a18c 100644 --- a/gst-libs/gst/Makefile.am +++ b/gst-libs/gst/Makefile.am @@ -7,7 +7,7 @@ OPENCV_DIR=opencv endif if TV_PROFILE -SUBDIRS = codecparsers mpegts $(WAYLAND_DIR) +SUBDIRS = codecparsers mpegts sctp webrtc $(WAYLAND_DIR) else SUBDIRS = uridownloader adaptivedemux interfaces basecamerabinsrc codecparsers \ insertbin mpegts audio sctp player isoff webrtc $(WAYLAND_DIR) \ @@ -16,22 +16,22 @@ endif noinst_HEADERS = gst-i18n-plugin.h gettext.h glib-compat-private.h if TV_PROFILE -DIST_SUBDIRS = codecparsers mpegts wayland +DIST_SUBDIRS = codecparsers mpegts wayland sctp webrtc else DIST_SUBDIRS = uridownloader adaptivedemux interfaces basecamerabinsrc \ codecparsers insertbin mpegts wayland opencv audio player isoff sctp webrtc -endif +endif adaptivedemux: uridownloader if TV_PROFILE INDEPENDENT_SUBDIRS = \ - codecparsers mpegts $(WAYLAND_DIR) + codecparsers mpegts sctp webrtc $(WAYLAND_DIR) else INDEPENDENT_SUBDIRS = \ interfaces basecamerabinsrc codecparsers insertbin uridownloader \ - mpegts player isoff sctp $(WAYLAND_DIR) $(OPENCV_DIR) -endif + mpegts player isoff sctp webrtc $(WAYLAND_DIR) $(OPENCV_DIR) +endif .PHONY: independent-subdirs $(INDEPENDENT_SUBDIRS) diff --git a/packaging/gst-plugins-bad.spec b/packaging/gst-plugins-bad.spec index fca68eb08..ab3398081 100644 --- a/packaging/gst-plugins-bad.spec +++ b/packaging/gst-plugins-bad.spec @@ -29,6 +29,7 @@ BuildRequires: pkgconfig(sndfile) >= 1.0.16 BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(soundtouch) > 1.4 BuildRequires: pkgconfig(nice) +BuildRequires: pkgconfig(usrsctp) %if %{with wayland} %if 0%{?enable_gl:1} BuildRequires: pkgconfig(gles20) @@ -81,6 +82,8 @@ export CFLAGS+=" -Wall -g -fPIC\ -Wl,-z,relro\ -D_FORTIFY_SOURCE=2" export CXXFLAGS+=" -DTIZEN_FEATURE_PITCH_AUDIO_META" +# export pthread for checking usrsctp_init at sctp configure +export LDFLAGS+=" -pthread " %configure\ --disable-static\ @@ -237,6 +240,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/gstreamer-%{gst_branch}/libgstproxy.so %{_libdir}/gstreamer-%{gst_branch}/libgstwebrtc.so %{_libdir}/gstreamer-%{gst_branch}/libgstdtls.so +%{_libdir}/gstreamer-%{gst_branch}/libgstsctp.so %{_libdir}/libgstsctp-%{gst_branch}.so.0* %{_libdir}/libgstwebrtc-%{gst_branch}.so.0* %{_libdir}/libgstcodecparsers-%{gst_branch}.so.0* -- 2.34.1