g_object_set (G_OBJECT (element), "drop-invalid", drop_invalid, NULL);
g_object_get (G_OBJECT (element), "drop-invalid", &val, NULL);
fail_unless (val == drop_invalid);
+
+ gst_object_unref (element);
}
GST_END_TEST;
test_crf_tstamps (h, buf, 218000, 119400, 2);
test_crf_tstamps (h, buf, 218000, 102000, 2);
+ gst_buffer_unref (buf);
gst_harness_teardown (h);
}
test_crf_tstamps (h, buf, 112900, 0, 2);
test_crf_tstamps (h, buf, 210000, 0, 2);
+ gst_buffer_unref (buf);
gst_harness_teardown (h);
}
test_crf_tstamps (h, buf, 112, 110, 1);
+ gst_buffer_unref (buf);
gst_harness_teardown (h);
}
g_object_set (G_OBJECT (element), "streamid", streamid, NULL);
g_object_get (G_OBJECT (element), "streamid", &val64, NULL);
fail_unless_equals_uint64_hex (val64, streamid);
+
+ gst_object_unref (element);
}
GST_END_TEST;
res = avtp_cvf_pdu_get (&pdu, AVTP_CVF_FIELD_TIMESTAMP, &tstamp);
fail_unless (res == 0);
fail_unless_equals_uint64 (tstamp, 12345);
+
+ g_object_unref (avtpcrfsync);
}
GST_END_TEST;
res = avtp_cvf_pdu_get (&pdu, AVTP_CVF_FIELD_MR, &mr_bit);
fail_unless (res == 0);
fail_unless_equals_uint64 (mr_bit, 1);
+
+ g_object_unref (avtpcrfsync);
}
GST_END_TEST;
for (i = 0; i < 10; i++) {
out = gst_harness_pull (h);
fail_unless_equals_uint64 (GST_BUFFER_DTS (out), first_tx_time);
+ gst_buffer_unref (out);
first_tx_time += measurement_interval / max_interval_frames;
}