nvh265dec: Don't convert unknown video format to string

gst_video_format_to_string() method does not allow unknown format

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6102>
This commit is contained in:
Seungha Yang 2024-02-12 22:01:45 +09:00 committed by GStreamer Marge Bot
parent 68d62a8433
commit 59358e439d

View file

@ -632,9 +632,11 @@ gst_nv_h265_dec_new_sequence (GstH265Decoder * decoder, const GstH265SPS * sps,
}
if (self->out_format != out_format) {
GST_INFO_OBJECT (self, "Output format changed %s -> %s",
gst_video_format_to_string (self->out_format),
gst_video_format_to_string (out_format));
if (self->out_format != GST_VIDEO_FORMAT_UNKNOWN) {
GST_INFO_OBJECT (self, "Output format changed %s -> %s",
gst_video_format_to_string (self->out_format),
gst_video_format_to_string (out_format));
}
self->out_format = out_format;
modified = TRUE;
}