mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
encoding-profile: Add guard against profiles without format
This commit is contained in:
parent
d20b84f1d2
commit
c6bc271e7e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue