textoverlay: Crash if using textoverlay in RTSP server pipeline with 32 bit build
Describe your issue
textoverlay,timeoverlay,clockoverlay elements being used in RTSP server cause crash when RTSP client disconnects
Expected Behavior
RTSP server continue working and new RTSP clients can connect again
Observed Behavior
RTSP server starts and client can connect to it and receive media. Once client disconnects RTSP server crashes
Setup
- Tried with Windows 11 x64 Pro and Windows 8.1 x86 . Crash is exist on both
- Tried with 32 bit GStreamer 1.22.3 and 1.20.0 . Both MSVC and MinGW version produce that crash.
- 64 bit version of GStreamer doesn't have this problem
Steps to reproduce the bug
- Use 32 bit GStreamer 1.22.3 on Windows
- Run a basic RTSP server with textoverlay element
GMainLoop* loop;
GstRTSPServer* server;
GstRTSPMountPoints* mounts;
GstRTSPMediaFactory* factory;
gst_init(&argc, &argv);
gst_debug_set_threshold_for_name("*", GST_LEVEL_WARNING);
loop = g_main_loop_new(NULL, FALSE);
server = gst_rtsp_server_new();
mounts = gst_rtsp_server_get_mount_points(server);
factory = gst_rtsp_media_factory_new();
gst_rtsp_media_factory_set_launch(factory, "videotestsrc is-live=true ! textoverlay ! x264enc ! rtph264pay name=pay0 pt=96");
gst_rtsp_mount_points_add_factory(mounts, "/test", factory);
g_object_unref(mounts);
gst_rtsp_server_attach(server, NULL);
g_print("stream ready at rtsp://127.0.0.1:8554/test\n");
g_main_loop_run(loop);
- Connect to the server with VLC player or rtspsrc
- Wait while connected client started receiving media
- Disconnect client
How reproducible is the bug?
Always reproducible
Screenshots if relevant
Solutions you have tried
Tried different versions of GStreamer, below are the results:
- GStreamer 1.22.3 32 bit - Crash
- GStreamer 1.20.0 32 bit - Crash
- GStreamer 1.18.5 32 bit - works normally
- GStreamer 1.18.5 64 bit - works normally
- GStreamer 1.22.3 64 bit - works normally
Edited by abear45