baseparse: only post 'no valid frames' error if buffers were received
authorThiago Santos <thiagoss@osg.samsung.com>
Wed, 25 Mar 2015 13:49:08 +0000 (10:49 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Thu, 26 Mar 2015 15:25:57 +0000 (12:25 -0300)
commita041d8862d90a86b7745f99a0db547be7d9baa75
tree4c64c03c83c436ace21ff925b2bb232215bd3865
parent3e8e0a7065410cd161b05133ac79b57118dd14c2
baseparse: only post 'no valid frames' error if buffers were received

Otherwise baseparse will consider empty streams to be an error while
an empty stream is a valid scenario. With this patch, errors would
only be emitted if the parser received data but wasn't able to
produce any output from it.

This change is only for push-mode operation as in pull mode an
empty file can be considered an error for the one driving the
pipeline

Includes a unit test for it

https://bugzilla.gnome.org/show_bug.cgi?id=733171
libs/gst/base/gstbaseparse.c
tests/check/libs/baseparse.c