pads: Improve readability for gst_pad_fixate_caps()
authorStefan Kost <ensonic@users.sf.net>
Mon, 24 May 2010 14:25:52 +0000 (17:25 +0300)
committerStefan Kost <ensonic@users.sf.net>
Tue, 1 Jun 2010 19:30:37 +0000 (22:30 +0300)
commit21b4ef4d0fe2bf163121b38d717efb688ac5c41c
treed9cb13a93d16be34b475d36636e498e6d4199685
parent53c122df2b167b170271fa33fd4f76b6411d86af
pads: Improve readability for gst_pad_fixate_caps()

Just truncate and then fixate. We check for empty caps in the begin and a
fixate-func that empties a caps would be broken. It also helps lazy caps impl.
in bug 618853 by avoiding the gst_caps_get_size().
gst/gstpad.c