Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
USAMAWIZARD committed Nov 27, 2023
1 parent 198be8e commit 56616ff
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin
Submodule bin updated from 461a38 to 198be8
Binary file modified dist/PluginApp.jar
Binary file not shown.
Binary file modified dist/libGstRTSP.so
Binary file not shown.
4 changes: 1 addition & 3 deletions src/main/java/io/antmedia/Native/RTSPServerNative.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ void onPacket(AVPacket *pkt, gchar *streamId, int pktType)
}
break;
}

break;
default:
{
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions test/loadtest.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#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

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

0 comments on commit 56616ff

Please sign in to comment.