Commit 2ddfeb8d authored by Stefan Kost's avatar Stefan Kost
Browse files

tests/check/: Fix big batch of compiler warnings.

Original commit message from CVS:
* tests/check/elements/audioresample.c: (GST_START_TEST):
* tests/check/elements/videotestsrc.c: (check_rgb_buf):
* tests/check/elements/volume.c: (GST_START_TEST):
* tests/check/elements/vorbisdec.c: (GST_START_TEST):
* tests/check/pipelines/oggmux.c: (validate_ogg_page), (eos_watch),
(test_pipeline), (GST_START_TEST):
* tests/check/pipelines/theoraenc.c: (GST_START_TEST):
* tests/check/pipelines/vorbisenc.c: (GST_START_TEST):
Fix big batch of compiler warnings.
parent 267a068e
2006-09-17 Stefan Kost <ensonic@users.sf.net>
* tests/check/elements/audioresample.c: (GST_START_TEST):
* tests/check/elements/videotestsrc.c: (check_rgb_buf):
* tests/check/elements/volume.c: (GST_START_TEST):
* tests/check/elements/vorbisdec.c: (GST_START_TEST):
* tests/check/pipelines/oggmux.c: (validate_ogg_page), (eos_watch),
(test_pipeline), (GST_START_TEST):
* tests/check/pipelines/theoraenc.c: (GST_START_TEST):
* tests/check/pipelines/vorbisenc.c: (GST_START_TEST):
Fix big batch of compiler warnings.
2006-09-17 Stefan Kost <ensonic@users.sf.net>
 
* ext/gnomevfs/gstgnomevfssrc.c:
......@@ -205,8 +205,6 @@ test_perfect_stream_instance (int inrate, int outrate, int samples,
*/
GST_START_TEST (test_perfect_stream)
{
guint inrate, outrate, bytes;
/* integral scalings */
test_perfect_stream_instance (48000, 24000, 500, 20);
test_perfect_stream_instance (48000, 12000, 500, 20);
......
......@@ -160,7 +160,7 @@ check_rgb_buf (const guint8 * pixels, guint32 r_mask, guint32 g_mask,
guint32 b_mask, guint32 a_mask, guint8 r_expected, guint8 g_expected,
guint8 b_expected, guint endianness, guint bpp, guint depth)
{
guint32 pixel, red, green, blue, alpha;
guint32 pixel = 0, red, green, blue, alpha;
switch (bpp) {
case 32:{
......
......@@ -285,7 +285,7 @@ GST_END_TEST;
GST_START_TEST (test_wrong_caps)
{
GstElement *volume;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
gint16 in[2] = { 16384, -256 };
GstBus *bus;
GstMessage *message;
......
......@@ -90,7 +90,7 @@ cleanup_vorbisdec (GstElement * vorbisdec)
GST_START_TEST (test_wrong_channels_identification_header)
{
GstElement *vorbisdec;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
GstBus *bus;
GstMessage *message;
......@@ -131,7 +131,7 @@ GST_END_TEST;
GST_START_TEST (test_empty_identification_header)
{
GstElement *vorbisdec;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
GstBus *bus;
GstMessage *message;
......@@ -168,7 +168,7 @@ GST_END_TEST;
GST_START_TEST (test_identification_header)
{
GstElement *vorbisdec;
GstBuffer *inbuffer, *outbuffer;
GstBuffer *inbuffer;
GstBus *bus;
GstMessage *message;
GstTagList *tag_list;
......
......@@ -126,9 +126,11 @@ validate_ogg_page (ogg_page * page)
g_hash_table_foreach (eos_chain_states, (GHFunc) fail_if_audio, NULL);
break;
case CODEC_VORBIS:
case CODEC_SPEEX:
/* no checks (yet) */
break;
case CODEC_UNKNOWN:
default:
break;
}
} else if (ogg_page_eos (page)) {
......@@ -219,6 +221,7 @@ eos_watch (GstBus * bus, GstMessage * message, GMainLoop * loop)
if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_EOS) {
g_main_loop_quit (loop);
}
return TRUE;
}
static void
......@@ -229,7 +232,6 @@ test_pipeline (const char *pipeline)
GstBus *bus;
GError *error = NULL;
GMainLoop *loop;
char *pipe_str;
GstPadLinkReturn linkret;
bin = gst_parse_launch (pipeline, &error);
......@@ -291,6 +293,8 @@ GST_START_TEST (test_theora_vorbis)
GST_END_TEST;
#if 0
/* THIS TEST FAILS AT THE MOMENT (KILLED AFTER TIMEOUT): */
GST_START_TEST (test_vorbis_theora)
{
test_pipeline
......@@ -299,6 +303,7 @@ GST_START_TEST (test_vorbis_theora)
}
GST_END_TEST;
#endif
static Suite *
oggmux_suite (void)
......
......@@ -110,7 +110,6 @@ GST_START_TEST (test_granulepos_offset)
gchar *pipe_str;
GstBuffer *buffer;
GError *error = NULL;
GstClockTime timestamp;
pipe_str = g_strdup_printf ("videotestsrc timestamp-offset=%" G_GUINT64_FORMAT
" ! video/x-raw-yuv,format=(fourcc)I420,framerate=10/1"
......@@ -204,7 +203,6 @@ GST_START_TEST (test_continuity)
gchar *pipe_str;
GstBuffer *buffer;
GError *error = NULL;
GstClockTime timestamp;
pipe_str = g_strdup_printf ("videotestsrc"
" ! video/x-raw-yuv,format=(fourcc)I420,framerate=10/1"
......
......@@ -93,7 +93,6 @@ GST_START_TEST (test_granulepos_offset)
gchar *pipe_str;
GstBuffer *buffer;
GError *error = NULL;
GstClockTime timestamp;
pipe_str = g_strdup_printf ("audiotestsrc timestamp-offset=%" G_GUINT64_FORMAT
" ! audio/x-raw-int,rate=44100"
......@@ -186,7 +185,6 @@ GST_START_TEST (test_timestamps)
gchar *pipe_str;
GstBuffer *buffer;
GError *error = NULL;
GstClockTime timestamp;
pipe_str = g_strdup_printf ("audiotestsrc"
" ! audio/x-raw-int,rate=44100" " ! audioconvert ! vorbisenc ! fakesink");
......@@ -276,7 +274,6 @@ GST_START_TEST (test_discontinuity)
gchar *pipe_str;
GstBuffer *buffer;
GError *error = NULL;
GstClockTime timestamp;
guint drop_id;
pipe_str = g_strdup_printf ("audiotestsrc samplesperbuffer=1024"
......@@ -310,7 +307,8 @@ GST_START_TEST (test_discontinuity)
gst_object_unref (sink);
}
drop_id = gst_pad_add_buffer_probe (droppad, drop_second_data_buffer, NULL);
drop_id = gst_pad_add_buffer_probe (droppad,
G_CALLBACK (drop_second_data_buffer), NULL);
gst_buffer_straw_start_pipeline (bin, pad);
/* check header packets */
......
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