subtitleoverlay: fix mutex error if sink caps is not video

We were trying to unlock a mutex that was not locked.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4972>
This commit is contained in:
Guillaume Desmottes 2023-07-04 15:37:16 +02:00 committed by Tim-Philipp Müller
parent 4bd7992d14
commit cdff561a76

View file

@ -1735,7 +1735,6 @@ gst_subtitle_overlay_video_sink_setcaps (GstSubtitleOverlay * self,
if (!gst_video_info_from_caps (&info, caps)) {
GST_ERROR_OBJECT (self, "Failed to parse caps");
ret = FALSE;
GST_SUBTITLE_OVERLAY_UNLOCK (self);
goto out;
}