mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
tests: fix more checks
This commit is contained in:
parent
e33b73f9df
commit
536e86e28f
7 changed files with 22 additions and 23 deletions
|
@ -1008,6 +1008,10 @@ gst_vorbis_enc_buffer_check_discontinuous (GstVorbisEnc * vorbisenc,
|
|||
{
|
||||
gboolean ret = FALSE;
|
||||
|
||||
GST_DEBUG_OBJECT (vorbisenc, "exp %" GST_TIME_FORMAT " time %" GST_TIME_FORMAT
|
||||
"dur %" GST_TIME_FORMAT, GST_TIME_ARGS (vorbisenc->expected_ts),
|
||||
GST_TIME_ARGS (timestamp), GST_TIME_ARGS (duration));
|
||||
|
||||
if (timestamp != GST_CLOCK_TIME_NONE &&
|
||||
vorbisenc->expected_ts != GST_CLOCK_TIME_NONE &&
|
||||
timestamp + duration != vorbisenc->expected_ts) {
|
||||
|
@ -1063,8 +1067,9 @@ gst_vorbis_enc_chain (GstPad * pad, GstBuffer * buffer)
|
|||
gst_segment_to_running_time (&vorbisenc->segment, GST_FORMAT_TIME,
|
||||
GST_BUFFER_TIMESTAMP (buffer));
|
||||
timestamp = running_time + vorbisenc->initial_ts;
|
||||
GST_DEBUG_OBJECT (vorbisenc, "Initial ts is %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (vorbisenc->initial_ts));
|
||||
GST_DEBUG_OBJECT (vorbisenc, "Initial ts is %" GST_TIME_FORMAT
|
||||
" timestamp %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (vorbisenc->initial_ts), GST_TIME_ARGS (timestamp));
|
||||
if (!vorbisenc->header_sent) {
|
||||
/* Vorbis streams begin with three headers; the initial header (with
|
||||
most of the codec setup parameters) which is mandated by the Ogg
|
||||
|
|
|
@ -315,6 +315,7 @@ gst_audio_buffer_clip (GstBuffer * buffer, GstSegment * segment, gint rate,
|
|||
size = gst_buffer_get_size (buffer);
|
||||
|
||||
timestamp = GST_BUFFER_TIMESTAMP (buffer);
|
||||
GST_DEBUG ("timestamp %" GST_TIME_FORMAT, GST_TIME_ARGS (timestamp));
|
||||
if (GST_BUFFER_DURATION_IS_VALID (buffer)) {
|
||||
duration = GST_BUFFER_DURATION (buffer);
|
||||
} else {
|
||||
|
@ -416,9 +417,11 @@ gst_audio_buffer_clip (GstBuffer * buffer, GstSegment * segment, gint rate,
|
|||
}
|
||||
|
||||
/* Get a writable buffer and apply all changes */
|
||||
GST_DEBUG ("trim %" G_GSIZE_FORMAT " size %" G_GSIZE_FORMAT, trim, size);
|
||||
ret = gst_buffer_create_sub (buffer, trim, size);
|
||||
gst_buffer_unref (buffer);
|
||||
|
||||
GST_DEBUG ("timestamp %" GST_TIME_FORMAT, GST_TIME_ARGS (timestamp));
|
||||
GST_BUFFER_TIMESTAMP (ret) = timestamp;
|
||||
|
||||
if (change_duration)
|
||||
|
|
|
@ -264,7 +264,12 @@ GST_END_TEST;
|
|||
static gboolean
|
||||
drop_second_data_buffer (GstPad * droppad, GstBuffer * buffer, gpointer unused)
|
||||
{
|
||||
return !(GST_BUFFER_OFFSET (buffer) == 1024);
|
||||
gboolean res;
|
||||
|
||||
res = !(GST_BUFFER_OFFSET (buffer) == 1024);
|
||||
GST_DEBUG ("dropping %d", res);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
GST_START_TEST (test_discontinuity)
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
EXPORTS
|
||||
gst_app_buffer_get_type
|
||||
gst_app_buffer_new
|
||||
gst_app_sink_get_caps
|
||||
gst_app_sink_get_drop
|
||||
gst_app_sink_get_emit_signals
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
EXPORTS
|
||||
gst_meta_net_address_get_info
|
||||
gst_netaddress_equal
|
||||
gst_netaddress_get_address_bytes
|
||||
gst_netaddress_get_ip4_address
|
||||
|
@ -8,5 +9,3 @@ EXPORTS
|
|||
gst_netaddress_set_ip4_address
|
||||
gst_netaddress_set_ip6_address
|
||||
gst_netaddress_to_string
|
||||
gst_netbuffer_get_type
|
||||
gst_netbuffer_new
|
||||
|
|
|
@ -19,12 +19,13 @@ EXPORTS
|
|||
gst_basertppayload_set_options
|
||||
gst_basertppayload_set_outcaps
|
||||
gst_rtcp_buffer_add_packet
|
||||
gst_rtcp_buffer_end
|
||||
gst_rtcp_buffer_get_first_packet
|
||||
gst_rtcp_buffer_get_packet_count
|
||||
gst_rtcp_buffer_map
|
||||
gst_rtcp_buffer_new
|
||||
gst_rtcp_buffer_new_copy_data
|
||||
gst_rtcp_buffer_new_take_data
|
||||
gst_rtcp_buffer_unmap
|
||||
gst_rtcp_buffer_validate
|
||||
gst_rtcp_buffer_validate_data
|
||||
gst_rtcp_ntp_to_unix
|
||||
|
@ -99,21 +100,7 @@ EXPORTS
|
|||
gst_rtp_buffer_get_ssrc
|
||||
gst_rtp_buffer_get_timestamp
|
||||
gst_rtp_buffer_get_version
|
||||
gst_rtp_buffer_list_add_extension_onebyte_header
|
||||
gst_rtp_buffer_list_add_extension_twobytes_header
|
||||
gst_rtp_buffer_list_from_buffer
|
||||
gst_rtp_buffer_list_get_extension_onebyte_header
|
||||
gst_rtp_buffer_list_get_extension_twobytes_header
|
||||
gst_rtp_buffer_list_get_payload_len
|
||||
gst_rtp_buffer_list_get_payload_type
|
||||
gst_rtp_buffer_list_get_seq
|
||||
gst_rtp_buffer_list_get_ssrc
|
||||
gst_rtp_buffer_list_get_timestamp
|
||||
gst_rtp_buffer_list_set_payload_type
|
||||
gst_rtp_buffer_list_set_seq
|
||||
gst_rtp_buffer_list_set_ssrc
|
||||
gst_rtp_buffer_list_set_timestamp
|
||||
gst_rtp_buffer_list_validate
|
||||
gst_rtp_buffer_map
|
||||
gst_rtp_buffer_new_allocate
|
||||
gst_rtp_buffer_new_allocate_len
|
||||
gst_rtp_buffer_new_copy_data
|
||||
|
@ -130,6 +117,7 @@ EXPORTS
|
|||
gst_rtp_buffer_set_ssrc
|
||||
gst_rtp_buffer_set_timestamp
|
||||
gst_rtp_buffer_set_version
|
||||
gst_rtp_buffer_unmap
|
||||
gst_rtp_buffer_validate
|
||||
gst_rtp_buffer_validate_data
|
||||
gst_rtp_payload_info_for_name
|
||||
|
|
|
@ -17,6 +17,7 @@ EXPORTS
|
|||
gst_tag_list_add_id3_image
|
||||
gst_tag_list_from_exif_buffer
|
||||
gst_tag_list_from_exif_buffer_with_tiff_header
|
||||
gst_tag_list_from_vorbiscomment
|
||||
gst_tag_list_from_vorbiscomment_buffer
|
||||
gst_tag_list_from_xmp_buffer
|
||||
gst_tag_list_new_from_id3v1
|
||||
|
|
Loading…
Reference in a new issue