reformat to fit 80 chars

Original commit message from CVS:
reformat to fit 80 chars
This commit is contained in:
Thomas Vander Stichele 2006-02-02 08:47:42 +00:00
parent a6d1e0b5bf
commit a80c8f6887
2 changed files with 16 additions and 16 deletions

2
common

@ -1 +1 @@
Subproject commit 0b93085188e83fe678ec5ded2823cd7c24dfa843 Subproject commit 1140eabed84dd1d8d6df7df88f5c8bdf20a8faa1

View file

@ -136,11 +136,11 @@ check_buffer_granulepos (GstBuffer * buffer, GstClockTime granulepos)
granulepos, GST_BUFFER_OFFSET_END (buffer)); granulepos, GST_BUFFER_OFFSET_END (buffer));
} }
/* this check is here to check that the granulepos we derive from the timestamp /* this check is here to check that the granulepos we derive from the
is about correct. This is "about correct" because you can't precisely go from timestamp is about correct. This is "about correct" because you can't
timestamp to granulepos due to the downward-rounding characteristics of precisely go from timestamp to granulepos due to the downward-rounding
gst_util_uint64_scale, so you check if granulepos is equal to the number, or characteristics of gst_util_uint64_scale, so you check if granulepos is
the number plus one. */ equal to the number, or the number plus one. */
/* should be from_endtime, but theora's granulepos mapping is "special" */ /* should be from_endtime, but theora's granulepos mapping is "special" */
static void static void
check_buffer_granulepos_from_starttime (GstBuffer * buffer, check_buffer_granulepos_from_starttime (GstBuffer * buffer,
@ -214,10 +214,10 @@ GST_START_TEST (test_granulepos_offset)
/* first buffer should have timestamp of TIMESTAMP_OFFSET, granulepos to /* first buffer should have timestamp of TIMESTAMP_OFFSET, granulepos to
* match the timestamp of the end of the last sample in the output buffer. * match the timestamp of the end of the last sample in the output buffer.
* Note that one cannot go timestamp->granulepos->timestamp and get the same * Note that one cannot go timestamp->granulepos->timestamp and get the
* value due to loss of precision with granulepos. theoraenc does take care * same value due to loss of precision with granulepos. theoraenc does
* to timestamp correctly based on the offset of the input data however, so * take care to timestamp correctly based on the offset of the input data
* it does do sub-granulepos timestamping. */ * however, so it does do sub-granulepos timestamping. */
buffer = get_buffer (bin, pad); buffer = get_buffer (bin, pad);
last_granulepos = GST_BUFFER_OFFSET_END (buffer); last_granulepos = GST_BUFFER_OFFSET_END (buffer);
check_buffer_timestamp (buffer, TIMESTAMP_OFFSET); check_buffer_timestamp (buffer, TIMESTAMP_OFFSET);
@ -302,15 +302,15 @@ GST_START_TEST (test_continuity)
/* first buffer should have timestamp of TIMESTAMP_OFFSET, granulepos to /* first buffer should have timestamp of TIMESTAMP_OFFSET, granulepos to
* match the timestamp of the end of the last sample in the output buffer. * match the timestamp of the end of the last sample in the output buffer.
* Note that one cannot go timestamp->granulepos->timestamp and get the same * Note that one cannot go timestamp->granulepos->timestamp and get the
* value due to loss of precision with granulepos. theoraenc does take care * same value due to loss of precision with granulepos. theoraenc does
* to timestamp correctly based on the offset of the input data however, so * take care to timestamp correctly based on the offset of the input data
* it does do sub-granulepos timestamping. */ * however, so it does do sub-granulepos timestamping. */
buffer = get_buffer (bin, pad); buffer = get_buffer (bin, pad);
last_granulepos = GST_BUFFER_OFFSET_END (buffer); last_granulepos = GST_BUFFER_OFFSET_END (buffer);
check_buffer_timestamp (buffer, 0); check_buffer_timestamp (buffer, 0);
check_buffer_duration (buffer, GST_SECOND / 10); /* plain division because I /* plain division because I know the answer is exact */
know the answer is exact */ check_buffer_duration (buffer, GST_SECOND / 10);
check_buffer_granulepos (buffer, 0); check_buffer_granulepos (buffer, 0);
next_timestamp = GST_BUFFER_DURATION (buffer); next_timestamp = GST_BUFFER_DURATION (buffer);