gst-rtsp-server: Make test-onvif-client example work on Windows

Use autovideosink instead of hardcoded xvimagesink,
so that platform-default videosink can be picked

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7174>
This commit is contained in:
Seungha Yang 2024-07-16 02:49:06 +09:00 committed by GStreamer Marge Bot
parent 25f3ab2e6c
commit c484de8d8b

View file

@ -128,7 +128,7 @@ setup (Context * ctx)
MAKE_AND_ADD (toverlay, ctx->pipe, "timeoverlay", done, NULL); MAKE_AND_ADD (toverlay, ctx->pipe, "timeoverlay", done, NULL);
MAKE_AND_ADD (tee, ctx->pipe, "tee", done, NULL); MAKE_AND_ADD (tee, ctx->pipe, "tee", done, NULL);
MAKE_AND_ADD (vqueue, ctx->pipe, "queue", done, NULL); MAKE_AND_ADD (vqueue, ctx->pipe, "queue", done, NULL);
MAKE_AND_ADD (ctx->sink, ctx->pipe, "xvimagesink", done, NULL); MAKE_AND_ADD (ctx->sink, ctx->pipe, "autovideosink", done, NULL);
g_object_set (ctx->src, "location", rtsp_address, NULL); g_object_set (ctx->src, "location", rtsp_address, NULL);
g_object_set (ctx->src, "onvif-mode", TRUE, NULL); g_object_set (ctx->src, "onvif-mode", TRUE, NULL);