summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2021-07-15 14:42:51 +0200
committerEdward Hervey <bilboed@bilboed.com>2021-07-15 14:42:51 +0200
commitcdfa0778c7e7f7b76e431b9dabdb44679e8ebed2 (patch)
treee3b83e6b02895a0232f17258a10ebc43523320b7
parentea3bd58289096b82d2e03a334fce437030740a25 (diff)
validate-media-descriptor: Don't check segment position field
The position field of GstSegment is meant for private usage within elements. Don't compare the values of it when doing media-check. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/251>
-rw-r--r--validate/gst/validate/media-descriptor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/validate/gst/validate/media-descriptor.c b/validate/gst/validate/media-descriptor.c
index e442e8e..100fdc3 100644
--- a/validate/gst/validate/media-descriptor.c
+++ b/validate/gst/validate/media-descriptor.c
@@ -377,7 +377,8 @@ compare_segments (GstValidateMediaDescriptor * ref,
CHECK_SEGMENT_FIELD (start, "%" G_GUINT64_FORMAT);
CHECK_SEGMENT_FIELD (stop, "%" G_GUINT64_FORMAT);
CHECK_SEGMENT_FIELD (time, "%" G_GUINT64_FORMAT);
- CHECK_SEGMENT_FIELD (position, "%" G_GUINT64_FORMAT);
+ /* We do not compare segment position since it's a field for usage only within the element */
+ /* CHECK_SEGMENT_FIELD (position, "%" G_GUINT64_FORMAT); */
CHECK_SEGMENT_FIELD (duration, "%" G_GUINT64_FORMAT);
return TRUE;