diff --git a/bin b/bin index 461a382..198be8e 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit 461a3820326f01a4726ae2359c5496c4f6b6e529 +Subproject commit 198be8e9f2884184c09f78ab84118a5b26fb9a2c diff --git a/dist/PluginApp.jar b/dist/PluginApp.jar index 7ab3726..811664d 100644 Binary files a/dist/PluginApp.jar and b/dist/PluginApp.jar differ diff --git a/dist/libGstRTSP.so b/dist/libGstRTSP.so index 165752b..0875353 100755 Binary files a/dist/libGstRTSP.so and b/dist/libGstRTSP.so differ diff --git a/src/main/java/io/antmedia/Native/RTSPServerNative.c b/src/main/java/io/antmedia/Native/RTSPServerNative.c index dcf4674..23b02cc 100644 --- a/src/main/java/io/antmedia/Native/RTSPServerNative.c +++ b/src/main/java/io/antmedia/Native/RTSPServerNative.c @@ -249,7 +249,6 @@ void onPacket(AVPacket *pkt, gchar *streamId, int pktType) } break; } - break; default: { @@ -916,7 +915,6 @@ void unregister_stream(char *streamId) // TODO : Free allocated resources StreamMap *ctx = (StreamMap *)g_hash_table_lookup(hash_table, streamid_d); if (ctx->pipeline != NULL) { - // printf("%s\n",gst_element_set_state(ctx->pipeline)); gst_element_set_state(ctx->pipeline, GST_STATE_NULL); ctx->pipeline = NULL; printf("unrefing pipelien(%s)\n", streamid_d); @@ -934,7 +932,7 @@ void unregister_stream(char *streamId) // TODO : Free allocated resources g_hash_table_remove(hash_table, streamid_d); if (g_hash_table_contains(hash_table, streamid_d)) { - printf("-------------------------not freed for some reason\n"); + printf("-------------------------not freed for some reason-----------\n"); } printf("stream unregistered %s\n", streamid_d); diff --git a/test/loadtest.sh b/test/loadtest.sh index 4ddcb70..c9cc208 100644 --- a/test/loadtest.sh +++ b/test/loadtest.sh @@ -1,5 +1,5 @@ #Publish -for i in {0..50}; +for i in {0..100}; do ffmpeg -stream_loop 12 -re -i ./test.mp4 -c:v copy -c:a aac -f flv "rtmp://localhost/LiveApp/myStream-$i" & done @@ -7,7 +7,7 @@ done read -p "Press enter to Play" #Play -for i in {0..20}; +for i in {0..100}; do ffplay rtsp://127.0.0.1:8554/myStream-$i & done