summaryrefslogtreecommitdiffstats
path: root/ext/sdl/sdlvideosink.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sdl/sdlvideosink.c')
-rw-r--r--ext/sdl/sdlvideosink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c
index 4664c219..321b7e89 100644
--- a/ext/sdl/sdlvideosink.c
+++ b/ext/sdl/sdlvideosink.c
@@ -778,7 +778,9 @@ gst_sdlvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
v = y + I420_V_OFFSET (sdlvideosink->width, sdlvideosink->height);
break;
default:
- g_assert_not_reached ();
+ gst_sdlvideosink_unlock (sdlvideosink);
+ g_mutex_unlock (sdlvideosink->lock);
+ g_return_val_if_reached (GST_FLOW_ERROR);
}
/* Y Plane */