mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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:
parent
8e7f380fd7
commit
0042c9dada
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue