GstElement *bin, *src1, *src2, *adder, *sink;
GstBus *bus;
GstPad *srcpad;
- GstStreamConsistency *consist;
gboolean res;
GST_INFO ("preparing test");
fail_unless (res == TRUE, NULL);
srcpad = gst_element_get_static_pad (adder, "src");
- consist = gst_consistency_checker_new (srcpad);
gst_object_unref (srcpad);
main_loop = g_main_loop_new (NULL, FALSE);
GstBus *bus;
GstPad *pad, *srcpad;
gboolean res;
- GstStreamConsistency *consist;
GST_INFO ("preparing test");
fail_if (pad == NULL, NULL);
srcpad = gst_element_get_static_pad (adder, "src");
- consist = gst_consistency_checker_new (srcpad);
gst_object_unref (srcpad);
main_loop = g_main_loop_new (NULL, FALSE);
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, red, green, blue;
switch (bpp) {
case 32:{
red = right_shift_colour (r_mask, pixel);
green = right_shift_colour (g_mask, pixel);
blue = right_shift_colour (b_mask, pixel);
- alpha = right_shift_colour (a_mask, pixel);
+ /* alpha = right_shift_colour (a_mask, pixel); */
/* can't enable this by default, valgrind will complain about accessing
* uninitialised memory for the depth=24,bpp=32 formats ... */
{
GstBuffer *buffer;
ogg_packet packet;
- float **vorbis_buffer;
+ float **vorbis_buffer G_GNUC_UNUSED;
vorbis_buffer = vorbis_analysis_buffer (&vd, 0);
vorbis_analysis_wrote (&vd, 0);
{
GstBuffer *buf;
GstRTCPPacket packet;
- guint8 *data;
buf = gst_rtcp_buffer_new (1400);
fail_unless (buf != NULL);
fail_unless_equals_int (GST_BUFFER_SIZE (buf), 1400);
- data = GST_BUFFER_DATA (buf);
fail_unless (gst_rtcp_buffer_get_first_packet (buf, &packet) == FALSE);
fail_unless (gst_rtcp_buffer_get_packet_count (buf) == 0);
{
GstClockTime next_timestamp;
- gint64 last_granulepos;
/* first buffer should have timestamp of TIMESTAMP_OFFSET, granulepos to
* match the timestamp of the end of the last sample in the output buffer.
* take care to timestamp correctly based on the offset of the input data
* however, so it does do sub-granulepos timestamping. */
buffer = gst_buffer_straw_get_buffer (bin, pad);
- last_granulepos = GST_BUFFER_OFFSET_END (buffer);
check_buffer_timestamp (buffer, 0);
/* plain division because I know the answer is exact */
check_buffer_duration (buffer, GST_SECOND / 10);