gdkpixbufdec: always output a TIME segment
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 17 Jan 2019 20:06:54 +0000 (21:06 +0100)
committerSebastian Dröge <slomo@coaxion.net>
Tue, 29 Jan 2019 18:46:25 +0000 (18:46 +0000)
commit869e45d19c172221dce66a608de7d55d24993aa3
tree0a6dae07ca8fccb59d6bbfd997d42e63441bea18
parente9b5e78c9ea37ef2d3f19c8b3075ea04cada193e
gdkpixbufdec: always output a TIME segment

It makes no sense for a decoder to output a BYTES segment, and
many elements one would plug downstream of a video decoder assume
the segments they receive are in TIME format, for example this fixes:

gst-validate-1.0 filesrc location=opacity01.svg ! gdkpixbufdec ! \
videobalance ! videoconvert ! fakesink

In that case, videobalance was emitting an assertion when trying to
call gst_object_sync_values()
ext/gdk_pixbuf/gstgdkpixbufdec.c