pushfilesrc: Add TIME SEGMENT capability
authorEdward Hervey <bilboed@bilboed.com>
Wed, 3 Dec 2014 13:47:05 +0000 (14:47 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 10 Dec 2014 14:09:25 +0000 (15:09 +0100)
commit0a381b9edd4edab2695bb394471f7653ed6ce25f
tree55e28b50bd69bbdae79b080534818e84d8733e82
parentf5d26af3c90887eefc8d4279534913c3c2842116
pushfilesrc: Add TIME SEGMENT capability

Adds a new set of properties to make pushfilesrc output a TIME SEGMENT
(instead of the filesrc BYTE SEGMENT).

When time-segment is set to True the following will happen:
* Seeks are refused (data starts from the beginning of the file)
* The BYTE segment will be replaced by a TIME segment with the values
  specified in the various properties
* The first outgoing buffer will have a timestamp set on it (by default
  it has a value of GST_CLOCK_TIME_NONE)
gst/debugutils/gstpushfilesrc.c
gst/debugutils/gstpushfilesrc.h