va: Fix log message when registering H264 encoder.

The log message would report an error for the H264 decoder when
registering failed, but we tried to register the H264 encoder instead.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2974>
This commit is contained in:
Florian Zwoch 2022-09-02 09:55:20 +00:00 committed by GStreamer Marge Bot
parent 4b3b234f72
commit a1b60be22b

View file

@ -191,7 +191,7 @@ plugin_register_encoders (GstPlugin * plugin, GstVaDevice * device,
case H264:
if (!gst_va_h264_enc_register (plugin, device, sinkcaps, srccaps,
GST_RANK_NONE, entrypoint)) {
GST_WARNING ("Failed to register H264 decoder: %s",
GST_WARNING ("Failed to register H264 encoder: %s",
device->render_device_path);
}
break;