From 9cdd506b4f993bbbd61e7ad2be3ca6f5356327e8 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 17 May 2019 08:14:26 +0800 Subject: [PATCH] Deprecated srs-librtmp. --- trunk/auto/generate-srs-librtmp-single.sh | 16 ++++++++-------- trunk/configure | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/trunk/auto/generate-srs-librtmp-single.sh b/trunk/auto/generate-srs-librtmp-single.sh index f0e173951..6def4b9a4 100755 --- a/trunk/auto/generate-srs-librtmp-single.sh +++ b/trunk/auto/generate-srs-librtmp-single.sh @@ -127,14 +127,14 @@ int main(int argc, char** argv) END -# compile the example -(cd $SRS_EXPORT_LIBRTMP_SINGLE && echo "${SRS_SINGLE_LIBRTMP_COMPILE}" && -`${SRS_SINGLE_LIBRTMP_COMPILE}` && ./example && rm -f example) -ret=$?; if [[ $ret -ne 0 ]]; then - echo "(cd $SRS_EXPORT_LIBRTMP_SINGLE && ${SRS_SINGLE_LIBRTMP_COMPILE} && ./example && rm -f example)" - echo -e "${RED}failed to compile example.${BLACK}" - exit $ret -fi +## compile the example +#(cd $SRS_EXPORT_LIBRTMP_SINGLE && echo "${SRS_SINGLE_LIBRTMP_COMPILE}" && +#`${SRS_SINGLE_LIBRTMP_COMPILE}` && ./example && rm -f example) +#ret=$?; if [[ $ret -ne 0 ]]; then +# echo "(cd $SRS_EXPORT_LIBRTMP_SINGLE && ${SRS_SINGLE_LIBRTMP_COMPILE} && ./example && rm -f example)" +# echo -e "${RED}failed to compile example.${BLACK}" +# exit $ret +#fi # clear the files for srs-librtmp project, generated by generate-srs-librtmp-project.sh (cd $SRS_EXPORT_LIBRTMP_SINGLE && rm -rf auto $SRS_OBJS_DIR research src Makefile) diff --git a/trunk/configure b/trunk/configure index 421b51ab6..a324d6905 100755 --- a/trunk/configure +++ b/trunk/configure @@ -735,4 +735,6 @@ else echo -e "${GREEN}Please use the srs-librtmp project: ${BLACK}" echo -e "${GREEN} cd $SRS_EXPORT_LIBRTMP_PROJECT && make ${BLACK}" fi + # Change to experiment. + echo -e "${YELLOW}Warning: Notice srs-librtmp is deprecated and maybe removed in future.${BLACK}" fi