[Bug 736655] basesink: preroll issue for some clips which audio is shorter than video

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Feb 13 00:56:38 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=736655

Sebastian Dröge (slomo) <slomo at coaxion.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #295411|none                        |needs-work
             status|                            |

--- Comment #100 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Review of attachment 295411:
 --> (https://bugzilla.gnome.org/review?bug=736655&attachment=295411)

::: tests/check/pipelines/streamsynchronizer.c
@@ +37,3 @@
+
+      g_mutex_lock (&test_mutex);
+      if (gst_event_parse_group_id (event, &group_id)) {

This should always succeed here, just add an assertion instead of the else case

@@ +126,3 @@
+      GST_STATE_CHANGE_FAILURE);
+
+  g_usleep (1 * G_USEC_PER_SEC);

Why the sleeps?

@@ +131,3 @@
+
+  g_object_unref (bus);
+  g_object_unref (G_OBJECT (pipeline));

Use gst_object_unref() and gst_object_ref(), and the G_OBJECT() casts are not
needed then

@@ +144,3 @@
+  run_streamsynchronizer_handle_eos ("videotestsrc name=videosrc ! "
+      "streamsynchronizer name=streamsync audiotestsrc name=audiosrc
num-buffers=0 ! "
+      "streamsync. streamsync. ! fakesink sync=true streamsync. ! fakesink
sync=true");

Make a separate testcase for each of these pipelines. That will make the test
runner output more informative :)

@@ +156,3 @@
+
+  suite_add_tcase (s, tc_chain);
+  tcase_add_test (tc_chain, test_streamsynchronizer_handle_eos);

Maybe we should also add some tests for the normal behaviour of
streamsynchronizer while we're at it. Testing that it passes through data
correctly, and especially aligns stream starts when they're switched to a new
group.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list