Commit a2eb6b45 authored by Wim Taymans's avatar Wim Taymans
Browse files

tests/check/: Fix some warnings.

Original commit message from CVS:
* tests/check/elements/gdpdepay.c: (GST_START_TEST):
* tests/check/elements/multifdsink.c: (GST_START_TEST):
* tests/check/elements/videorate.c: (GST_START_TEST):
* tests/check/libs/cddabasesrc.c: (GST_START_TEST):
* tests/check/pipelines/oggmux.c: (eos_buffer_probe):
Fix some warnings.
parent d2d27473
2006-09-20 Wim Taymans <wim@fluendo.com>
* tests/check/elements/gdpdepay.c: (GST_START_TEST):
* tests/check/elements/multifdsink.c: (GST_START_TEST):
* tests/check/elements/videorate.c: (GST_START_TEST):
* tests/check/libs/cddabasesrc.c: (GST_START_TEST):
* tests/check/pipelines/oggmux.c: (eos_buffer_probe):
Fix some warnings.
2006-09-20 Stefan Kost <ensonic@users.sf.net>
 
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_xv_support),
......@@ -105,11 +105,9 @@ GST_START_TEST (test_audio_per_byte)
GstCaps *caps;
GstPad *srcpad;
GstElement *gdpdepay;
GstBuffer *buffer, *inbuffer, *outbuffer;
gint length;
GstBuffer *buffer, *outbuffer;
guint8 *header, *payload;
guint len;
guint i;
gdpdepay = setup_gdpdepay ();
srcpad = gst_element_get_pad (gdpdepay, "src");
......@@ -177,9 +175,8 @@ GST_START_TEST (test_audio_in_one_buffer)
GstCaps *caps;
GstPad *srcpad;
GstElement *gdpdepay;
GstBuffer *buffer, *inbuffer, *outbuffer;
gint length;
guint8 *caps_header, *caps_payload, *buf_header, *buf_payload;
GstBuffer *buffer, *inbuffer;
guint8 *caps_header, *caps_payload, *buf_header;
guint header_len, payload_len;
guint i;
......@@ -273,8 +270,7 @@ GST_START_TEST (test_streamheader)
GstPad *srcpad;
GstElement *gdpdepay;
GstBuffer *buffer, *inbuffer, *outbuffer, *shbuffer;
gint length;
guint8 *caps_header, *caps_payload, *buf_header, *buf_payload;
guint8 *caps_header, *caps_payload, *buf_header;
guint header_len, payload_len;
guint i;
GstStructure *structure;
......
......@@ -106,7 +106,6 @@ GST_START_TEST (test_add_client)
GstCaps *caps;
int pfd[2];
gchar data[4];
guint64 bytes_served;
sink = setup_multifdsink ();
......@@ -236,11 +235,7 @@ GST_START_TEST (test_streamheader)
GstElement *sink;
GstBuffer *hbuf1, *hbuf2, *buf;
GstCaps *caps;
GstStructure *structure;
int pfd1[2], pfd2[2];
guint8 data[12];
guint64 bytes_served;
int avail;
sink = setup_multifdsink ();
......@@ -330,13 +325,7 @@ GST_START_TEST (test_change_streamheader)
GstElement *sink;
GstBuffer *hbuf1, *hbuf2, *buf;
GstCaps *caps;
GstStructure *structure;
int pfd1[2], pfd2[2];
guint8 data[12];
GValue array = { 0 };
GValue value = { 0 };
guint64 bytes_served;
int avail;
sink = setup_multifdsink ();
......@@ -452,7 +441,6 @@ GST_START_TEST (test_burst_client_bytes)
int pfd2[2];
int pfd3[2];
gchar data[16];
guint64 bytes_served;
gint i;
guint buffers_queued;
......@@ -566,7 +554,6 @@ GST_START_TEST (test_burst_client_bytes_keyframe)
int pfd2[2];
int pfd3[2];
gchar data[16];
guint64 bytes_served;
gint i;
guint buffers_queued;
......@@ -682,7 +669,6 @@ GST_START_TEST (test_burst_client_bytes_with_keyframe)
int pfd2[2];
int pfd3[2];
gchar data[16];
guint64 bytes_served;
gint i;
guint buffers_queued;
......@@ -803,9 +789,7 @@ GST_START_TEST (test_client_next_keyframe)
GstCaps *caps;
int pfd1[2];
gchar data[16];
guint64 bytes_served;
gint i;
guint buffers_queued;
sink = setup_multifdsink ();
g_object_set (sink, "sync-method", 1, NULL); /* 1 = next-keyframe */
......
......@@ -118,7 +118,7 @@ cleanup_videorate (GstElement * videorate)
GST_START_TEST (test_one)
{
GstElement *videorate;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
GstCaps *caps;
videorate = setup_videorate ();
......@@ -259,7 +259,6 @@ GST_START_TEST (test_wrong_order_from_zero)
GstElement *videorate;
GstBuffer *first, *second, *third, *outbuffer;
GstCaps *caps;
guint64 in, out, dropped, duplicated;
videorate = setup_videorate ();
fail_unless (gst_element_set_state (videorate,
......@@ -349,7 +348,6 @@ GST_START_TEST (test_wrong_order)
GstElement *videorate;
GstBuffer *first, *second, *third, *fourth, *outbuffer;
GstCaps *caps;
guint64 in, out, dropped, duplicated;
videorate = setup_videorate ();
fail_unless (gst_element_set_state (videorate,
......@@ -458,7 +456,7 @@ GST_END_TEST;
GST_START_TEST (test_no_framerate)
{
GstElement *videorate;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
GstCaps *caps;
videorate = setup_videorate ();
......
......@@ -327,6 +327,9 @@ GST_START_TEST (test_buffer_timestamps)
gst_buffer_straw_start_pipeline (pipeline, sinkpad);
prev_ts = GST_CLOCK_TIME_NONE;
prev_duration = GST_CLOCK_TIME_NONE;
for (i = 0; i < 100; ++i) {
GstBuffer *buf;
......
......@@ -164,13 +164,14 @@ eos_buffer_probe (GstPad * pad, GstBuffer * buffer, gpointer unused)
memcpy (oggbuffer, data, size);
ogg_sync_wrote (&oggsync, size);
while (ret != 0) {
do {
ogg_page page;
ret = ogg_sync_pageout (&oggsync, &page);
if (ret > 0)
validate_ogg_page (&page);
}
while (ret != 0);
return TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment