plugins/elements/gstidentity.c: Set the buffer offset/offset_end to GST_CLOCK_TIME_NONE when using the single-segment...

Original commit message from CVS:
* plugins/elements/gstidentity.c: (gst_identity_transform_ip):
Set the buffer offset/offset_end to GST_CLOCK_TIME_NONE when using
the single-segment mode.
This commit is contained in:
Edward Hervey 2006-01-10 15:42:29 +00:00
parent 8e7f380fd7
commit 0042c9dada
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-01-10 Edward Hervey <edward@fluendo.com>
* plugins/elements/gstidentity.c: (gst_identity_transform_ip):
Set the buffer offset/offset_end to GST_CLOCK_TIME_NONE when using
the single-segment mode.
2006-01-10 Brian Cameron <brian dot cameron at sun dot com> 2006-01-10 Brian Cameron <brian dot cameron at sun dot com>
Reviewed by: Tim-Philipp Müller <tim at centricular dot net> Reviewed by: Tim-Philipp Müller <tim at centricular dot net>

View file

@ -449,8 +449,11 @@ gst_identity_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
g_usleep (identity->sleep_time); g_usleep (identity->sleep_time);
if (identity->single_segment && (trans->segment.format == GST_FORMAT_TIME) if (identity->single_segment && (trans->segment.format == GST_FORMAT_TIME)
&& (ret == GST_FLOW_OK)) && (ret == GST_FLOW_OK)) {
GST_BUFFER_TIMESTAMP (buf) = runtimestamp; GST_BUFFER_TIMESTAMP (buf) = runtimestamp;
GST_BUFFER_OFFSET (buf) = GST_CLOCK_TIME_NONE;
GST_BUFFER_OFFSET_END (buf) = GST_CLOCK_TIME_NONE;
}
return ret; return ret;
} }