GNOME Bugzilla – Bug 323392
gstvideorate is pushing buffers with invalid timestamps
Last modified: 2006-01-13 15:35:34 UTC
The gstvideorate element is sending buffers with invalid timestamps relative to the current segment (all the buffers it sends are relative to 0). When it receives a NEW_SEGMENT event, it pushes this event without changing the timestamps. It should either modify the timestamps in the event, or make the timestamps of the output buffers relative to the segment's timestamp.
Created attachment 55699 [details] [review] proposed fix When a NEW_SEGMENT event is received, unref it and push a new NEW_SEGMENT event with a timestamp of 0.
It should modify the timestamps of the buffer and not assume that the segment starts at 0 (as it is still doing now)
Well, it does not assume the segment starts at 0, it forces the segment to start at 0 (for downstream elements). The timestamp of videorate's first buffer will always be 0 because the new segment's timestamp is substracted from the buffer's timestamp. It guess having the first buffer use the segment's timestamp might be a nicer solution, but the end result would be the same.
This bug was fixed in 0.10.1