mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst-libs/gst/audio/audio.c: When clipping a buffer with no timestamp, assume it is within the segment without warnings.
Original commit message from CVS: * gst-libs/gst/audio/audio.c: When clipping a buffer with no timestamp, assume it is within the segment without warnings. Fixes: #460978
This commit is contained in:
parent
be5ef4b0ad
commit
d5dc054ea3
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
2007-07-27 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* gst-libs/gst/audio/audio.c:
|
||||
When clipping a buffer with no timestamp, assume it is
|
||||
within the segment without warnings.
|
||||
|
||||
Fixes: #460978
|
||||
|
||||
2007-07-27 Wim Taymans <wim.taymans@gmail.com>
|
||||
|
||||
* gst-libs/gst/rtsp/gstrtspextension.c: (gst_rtsp_extension_send):
|
||||
|
|
|
@ -266,6 +266,9 @@ gst_audio_structure_set_int (GstStructure * structure, GstAudioFieldFlag flag)
|
|||
* Returns: %NULL if the buffer is completely outside the configured segment,
|
||||
* otherwise the clipped buffer is returned.
|
||||
*
|
||||
* If the buffer has no timestamp, it is assumed to be inside the segment and
|
||||
* is not clipped
|
||||
*
|
||||
* Since: 0.10.14
|
||||
*/
|
||||
GstBuffer *
|
||||
|
@ -284,7 +287,10 @@ gst_audio_buffer_clip (GstBuffer * buffer, GstSegment * segment, gint rate,
|
|||
g_return_val_if_fail (segment->format == GST_FORMAT_TIME ||
|
||||
segment->format == GST_FORMAT_DEFAULT, buffer);
|
||||
g_return_val_if_fail (GST_IS_BUFFER (buffer), NULL);
|
||||
g_return_val_if_fail (GST_BUFFER_TIMESTAMP_IS_VALID (buffer), buffer);
|
||||
|
||||
if (!GST_BUFFER_TIMESTAMP_IS_VALID (buffer))
|
||||
/* No timestamp - assume the buffer is completely in the segment */
|
||||
return buffer;
|
||||
|
||||
/* Get copies of the buffer metadata to change later.
|
||||
* Calculate the missing values for the calculations,
|
||||
|
|
Loading…
Reference in a new issue