mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
tests: fix useless segment test
This commit is contained in:
parent
afba547722
commit
f2e05faaaf
1 changed files with 0 additions and 19 deletions
|
@ -243,18 +243,6 @@ GST_START_TEST (segment_seek_size)
|
|||
fail_unless (segment.stop == -1);
|
||||
fail_unless (update == TRUE);
|
||||
|
||||
#if 0
|
||||
/* configure segment to stop relative, does not update stop
|
||||
* since we did not set it before. */
|
||||
gst_segment_do_seek (&segment, 1.0,
|
||||
GST_FORMAT_BYTES,
|
||||
GST_SEEK_FLAG_NONE,
|
||||
GST_SEEK_TYPE_NONE, 200, GST_SEEK_TYPE_CUR, -100, &update);
|
||||
fail_unless (segment.start == 100);
|
||||
fail_unless (segment.stop == -1);
|
||||
fail_unless (update == FALSE);
|
||||
#endif
|
||||
|
||||
/* do some clipping on the open range */
|
||||
/* completely outside */
|
||||
res = gst_segment_clip (&segment, GST_FORMAT_BYTES, 0, 50, &cstart, &cstop);
|
||||
|
@ -284,13 +272,6 @@ GST_START_TEST (segment_seek_size)
|
|||
fail_unless (cstart == 150);
|
||||
fail_unless (cstop == 200);
|
||||
|
||||
/* partially inside, clip to size */
|
||||
res = gst_segment_clip (&segment, GST_FORMAT_BYTES,
|
||||
150, 300, &cstart, &cstop);
|
||||
fail_unless (res == TRUE);
|
||||
fail_unless (cstart == 150);
|
||||
fail_unless (cstop == 200);
|
||||
|
||||
/* invalid start */
|
||||
res = gst_segment_clip (&segment, GST_FORMAT_BYTES, -1, 100, &cstart, &cstop);
|
||||
fail_unless (res == FALSE);
|
||||
|
|
Loading…
Reference in a new issue