mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
v4l2object: Don't leak empty caps
https://bugzilla.gnome.org/show_bug.cgi?id=720568
This commit is contained in:
parent
a54b34121f
commit
5be7d39a3f
1 changed files with 4 additions and 2 deletions
|
@ -2139,8 +2139,10 @@ gst_v4l2_object_probe_caps_for_format (GstV4l2Object * v4l2object,
|
|||
GList *results = NULL;
|
||||
guint32 w, h;
|
||||
|
||||
if (pixelformat == GST_MAKE_FOURCC ('M', 'P', 'E', 'G'))
|
||||
return gst_caps_new_empty_simple ("video/mpegts");
|
||||
if (pixelformat == GST_MAKE_FOURCC ('M', 'P', 'E', 'G')) {
|
||||
gst_caps_append_structure (ret, gst_structure_copy (template));
|
||||
return ret;
|
||||
}
|
||||
|
||||
memset (&size, 0, sizeof (struct v4l2_frmsizeenum));
|
||||
size.index = 0;
|
||||
|
|
Loading…
Reference in a new issue