Hi,
I just observed these annoying messages in Visual Studio and wonder whether it’s possible to remove such warnings by adding a patch to GStreamer.
Update: Confirmed that the problem is in d3d11h264dec. There are no repeated warnings in d3d12h264dec and nvh264dec.
To reproduce the issue, create a simple Visual Studio project with code below (main.c):
#include <gst/gst.h>
int main(int argc, char* argv[])
{
gst_init(NULL, NULL);
GstElement* pipeline = gst_parse_launch(
"filesrc location=sintel_trailer-480p.mp4 ! qtdemux ! decodebin ! videoconvert ! autovideosink", NULL);
if (!pipeline) {
exit(-1);
}
GMainLoop* loop = g_main_loop_new(NULL, FALSE);
gst_element_set_state(pipeline, GST_STATE_PLAYING);
g_main_loop_run(loop);
gst_deinit();
return 0;
}
When the debugging is started, I can see that the program works fine, but there’s a new warning message created every few seconds, in Visual Studio’s output panel.
I guess that whenever a keyframe is reached, a new warning message is created.
My testing environment:
- Windows 11 23H2 x86_64
- Visual Studio 2019
- GStreamer 1.24.12