imagefreeze: clear 0 DTS on buffers output, as sinks will prefer DTS over PTS for...
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 4 Jul 2012 17:58:46 +0000 (18:58 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 4 Jul 2012 18:03:12 +0000 (19:03 +0100)
commit8098a2f0b26b10c8cb611d634190532d2b2a9aed
tree3f9f8993225c98774d4bcb051ad13cd9c035b5c3
parentb64849550ddedbec998a8157ae31e30c3fd2d7d1
imagefreeze: clear 0 DTS on buffers output, as sinks will prefer DTS over PTS for syncing

Since the initial decoded still image buffer will have dts=pts=0, and
we only set PTS on buffers we push out, all buffers pushed out would
have a DTS of 0. Sinks, however, will prefer DTS over PTS if both are
set, and will therefore always see a timestamp of 0 no matter what
the PTS is set to.

Fixes unit test too.
gst/imagefreeze/gstimagefreeze.c