{
guint *n_buffers = (guint *) user_data;
+ if (*n_buffers == G_MAXUINT)
+ return;
+
fail_unless_equals_uint64 (GST_BUFFER_TIMESTAMP (buffer), 0);
fail_unless_equals_uint64 (GST_BUFFER_DURATION (buffer), GST_CLOCK_TIME_NONE);
fail_unless_equals_uint64 (GST_BUFFER_OFFSET (buffer), 0);
GstCaps *caps1, *caps2;
GstBus *bus;
GMainLoop *loop;
- guint n_buffers = 0;
+ guint n_buffers = G_MAXUINT;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
gst_bus_add_watch (bus, bus_handler, loop);
gst_object_unref (bus);
+ n_buffers = 0;
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
GST_STATE_CHANGE_SUCCESS);
{
guint *n_buffers = (guint *) user_data;
+ if (*n_buffers == G_MAXUINT)
+ return;
+
fail_unless_equals_uint64 (GST_BUFFER_TIMESTAMP (buffer),
*n_buffers * 40 * GST_MSECOND);
fail_unless_equals_uint64 (GST_BUFFER_DURATION (buffer), 40 * GST_MSECOND);
GstCaps *caps1, *caps2;
GstBus *bus;
GMainLoop *loop;
- guint n_buffers = 0;
+ guint n_buffers = G_MAXUINT;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
gst_bus_add_watch (bus, bus_handler, loop);
gst_object_unref (bus);
- fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
+ fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
GST_STATE_CHANGE_SUCCESS);
fail_unless (gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET,
400 * GST_MSECOND));
+ n_buffers = 0;
+
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
GST_STATE_CHANGE_SUCCESS);
{
guint *n_buffers = (guint *) user_data;
+ if (*n_buffers == G_MAXUINT)
+ return;
+
fail_unless_equals_uint64 (GST_BUFFER_TIMESTAMP (buffer),
200 * GST_MSECOND + *n_buffers * 40 * GST_MSECOND);
fail_unless_equals_uint64 (GST_BUFFER_DURATION (buffer), 40 * GST_MSECOND);
GstCaps *caps1, *caps2;
GstBus *bus;
GMainLoop *loop;
- guint n_buffers = 0;
+ guint n_buffers = G_MAXUINT;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
gst_bus_add_watch (bus, bus_handler, loop);
gst_object_unref (bus);
- fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
+ fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
GST_STATE_CHANGE_SUCCESS);
fail_unless (gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 200 * GST_MSECOND,
GST_SEEK_TYPE_SET, 400 * GST_MSECOND));
+ n_buffers = 0;
+
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
GST_STATE_CHANGE_SUCCESS);
{
guint *n_buffers = (guint *) user_data;
+ if (*n_buffers == G_MAXUINT)
+ return;
+
fail_unless_equals_uint64 (GST_BUFFER_TIMESTAMP (buffer),
400 * GST_MSECOND - (*n_buffers + 1) * 40 * GST_MSECOND);
fail_unless_equals_uint64 (GST_BUFFER_DURATION (buffer), 40 * GST_MSECOND);
GstCaps *caps1, *caps2;
GstBus *bus;
GMainLoop *loop;
- guint n_buffers = 0;
+ guint n_buffers = G_MAXUINT;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
gst_bus_add_watch (bus, bus_handler, loop);
gst_object_unref (bus);
- fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
+ fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
GST_STATE_CHANGE_SUCCESS);
fail_unless (gst_element_seek (pipeline, -1.0, GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET,
400 * GST_MSECOND));
+ n_buffers = 0;
+
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
GST_STATE_CHANGE_SUCCESS);
{
guint *n_buffers = (guint *) user_data;
+ if (*n_buffers == G_MAXUINT)
+ return;
+
if (*n_buffers == 0) {
fail_unless_equals_uint64 (GST_BUFFER_TIMESTAMP (buffer),
220 * GST_MSECOND);
GstCaps *caps1, *caps2;
GstBus *bus;
GMainLoop *loop;
- guint n_buffers = 0;
+ guint n_buffers = G_MAXUINT;
caps1 =
gst_video_format_new_caps (GST_VIDEO_FORMAT_xRGB, 640, 480, 25, 1, 1, 1);
gst_bus_add_watch (bus, bus_handler, loop);
gst_object_unref (bus);
- fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
+ fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PAUSED),
GST_STATE_CHANGE_SUCCESS);
fail_unless (gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 220 * GST_MSECOND,
GST_SEEK_TYPE_SET, 380 * GST_MSECOND));
+ n_buffers = 0;
+
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_PLAYING),
GST_STATE_CHANGE_SUCCESS);