From ed5d677dce5d2cbde684fc2cc753477fdde312bf Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Mon, 19 Jun 2017 20:35:30 +0900 Subject: [PATCH] mpegpsmux: remove unnecessary g_return_if_fail() This should never happen, and should be a g_assert() if it's a worry. Fixes warnings from source code checkers about possible caps leaks here. https://bugzilla.gnome.org/show_bug.cgi?id=783955 --- gst/mpegpsmux/mpegpsmux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gst/mpegpsmux/mpegpsmux.c b/gst/mpegpsmux/mpegpsmux.c index cdd3681d23..a2cb2576fd 100644 --- a/gst/mpegpsmux/mpegpsmux.c +++ b/gst/mpegpsmux/mpegpsmux.c @@ -229,7 +229,6 @@ mpegpsmux_create_stream (MpegPsMux * mux, MpegPsPadData * ps_data, GstPad * pad) } s = gst_caps_get_structure (caps, 0); - g_return_val_if_fail (s != NULL, FALSE); if (gst_structure_has_name (s, "video/x-dirac")) { GST_DEBUG_OBJECT (pad, "Creating Dirac stream");