From c6bc271e7ea4362bff2bd754e5396456649891fb Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 21 Dec 2010 13:08:15 +0100 Subject: [PATCH] encoding-profile: Add guard against profiles without format --- gst-libs/gst/pbutils/encoding-profile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c index 03be131..f981f7e 100644 --- a/gst-libs/gst/pbutils/encoding-profile.c +++ b/gst-libs/gst/pbutils/encoding-profile.c @@ -673,6 +673,8 @@ GstEncodingContainerProfile * gst_encoding_container_profile_new (const gchar * name, const gchar * description, GstCaps * format, const gchar * preset) { + g_return_val_if_fail (GST_IS_CAPS (format), NULL); + return (GstEncodingContainerProfile *) common_creation (GST_TYPE_ENCODING_CONTAINER_PROFILE, format, preset, name, description, NULL, 0); -- 2.7.4