webrtc-unidirectional-h264.c in VS 2017 crashing when closing the browser(both Mozilla and Chrome)
I'm using GStreamer 1.18 version. I used the following pipeline in webrtc-unidirectional-h264.c
receiver_entry->pipeline = gst_parse_launch("webrtcbin name=webrtcbin stun-server=stun://" STUN_SERVER " " "videotestsrc is-live=true pattern=ball ! video/x-raw,width=640,height=360,framerate=15/1,format=I420 ! videoconvert ! queue max-size-buffers=1 ! x264enc bitrate=600 speed-preset=ultrafast tune=zerolatency key-int-max=15 ! video/x-h264,profile=constrained-baseline ! queue max-size-time=100000000 ! h264parse ! " "rtph264pay config-interval=-1 name=payloader ! " "application/x-rtp,media=video,encoding-name=H264,payload=96 ! webrtcbin. ", &error);
It's working fine. When I'm closing the browser, the program is crashing when it is freeing the connection.
if (receiver_entry->connection != NULL) g_object_unref(G_OBJECT(receiver_entry->connection));