[0.11] gst-plugins-base: tests: fix more checks
Wim Taymans
wtay at kemper.freedesktop.org
Wed Mar 30 12:41:06 PDT 2011
Module: gst-plugins-base
Branch: 0.11
Commit: 536e86e28f781e4d3553513984cad904575ba148
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=536e86e28f781e4d3553513984cad904575ba148
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Mon Mar 28 19:23:38 2011 +0200
tests: fix more checks
---
ext/vorbis/gstvorbisenc.c | 9 +++++++--
gst-libs/gst/audio/audio.c | 3 +++
tests/check/pipelines/vorbisenc.c | 7 ++++++-
win32/common/libgstapp.def | 2 --
win32/common/libgstnetbuffer.def | 3 +--
win32/common/libgstrtp.def | 20 ++++----------------
win32/common/libgsttag.def | 1 +
7 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c
index 0fb3de7..e6c84d7 100644
--- a/ext/vorbis/gstvorbisenc.c
+++ b/ext/vorbis/gstvorbisenc.c
@@ -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
diff --git a/gst-libs/gst/audio/audio.c b/gst-libs/gst/audio/audio.c
index 356921e..107f78e 100644
--- a/gst-libs/gst/audio/audio.c
+++ b/gst-libs/gst/audio/audio.c
@@ -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)
diff --git a/tests/check/pipelines/vorbisenc.c b/tests/check/pipelines/vorbisenc.c
index 2666a4c..4e35aeb 100644
--- a/tests/check/pipelines/vorbisenc.c
+++ b/tests/check/pipelines/vorbisenc.c
@@ -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)
diff --git a/win32/common/libgstapp.def b/win32/common/libgstapp.def
index 892d680..596a576 100644
--- a/win32/common/libgstapp.def
+++ b/win32/common/libgstapp.def
@@ -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
diff --git a/win32/common/libgstnetbuffer.def b/win32/common/libgstnetbuffer.def
index bd6f8c7..4a191d4 100644
--- a/win32/common/libgstnetbuffer.def
+++ b/win32/common/libgstnetbuffer.def
@@ -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
diff --git a/win32/common/libgstrtp.def b/win32/common/libgstrtp.def
index 41c9660..54d855b 100644
--- a/win32/common/libgstrtp.def
+++ b/win32/common/libgstrtp.def
@@ -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
diff --git a/win32/common/libgsttag.def b/win32/common/libgsttag.def
index 846bba6..f373cf4 100644
--- a/win32/common/libgsttag.def
+++ b/win32/common/libgsttag.def
@@ -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
More information about the gstreamer-commits
mailing list