meetecho / simple-whep-client

Simple WHEP Client (based on GStreamer's webrtcbin)
GNU General Public License v3.0
7 stars 2 forks source link

Fix errors and leaks #1

Closed SanchayanMaity closed 1 year ago

SanchayanMaity commented 1 year ago

When stopping using Ctrl-c, the following error was seen

(whep-client:78824): GStreamer-CRITICAL **: 13:30:41.572: Trying to dispose object "webrtcbin0", but it still has a parent "pipeline0". You need to let the parent manage the object instead of unreffing the object directly.

Also fix leaks due to missing unrefs.

gst_deinit is required to debug leaks.

GST_TRACERS="leaks" GST_DEBUG="GST_TRACER:7,leaks:6" ./whep-client -u http://localhost:7090/whep/endpoint/abc123 -n -f

lminiero commented 1 year ago

Thanks for the tip and the fix! I don't remember the same problem being there for the WHIP client, but I'll check using the env variable you suggested and the additional call to gst_deinit. Merging! :+1: