tests/check/elements/videorate.c: Set buffer timestamp to a valid value in order to test the buffer really does stay ...

Original commit message from CVS:
* tests/check/elements/videorate.c: (GST_START_TEST):
Set buffer timestamp to a valid value in order to test the buffer
really does stay in videorate.
This commit is contained in:
Edward Hervey 2007-05-03 11:24:00 +00:00
parent 25d28aae98
commit 14f2bca596
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-05-03 Edward Hervey <edward@fluendo.com>
* tests/check/elements/videorate.c: (GST_START_TEST):
Set buffer timestamp to a valid value in order to test the buffer
really does stay in videorate.
2007-05-03 Edward Hervey <edward@fluendo.com>
* gst/videorate/gstvideorate.c: (gst_video_rate_chain):

View file

@ -138,6 +138,7 @@ GST_START_TEST (test_one)
memset (GST_BUFFER_DATA (inbuffer), 0, 4);
caps = gst_caps_from_string (VIDEO_CAPS_STRING);
gst_buffer_set_caps (inbuffer, caps);
GST_BUFFER_TIMESTAMP (inbuffer) = 0;
gst_caps_unref (caps);
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);