[Bug 780442] gtreamer-vaapi render multi video in single pipeline causing videos not killed with vaapisink in wayland

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Apr 7 12:06:59 UTC 2017


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

--- Comment #10 from Víctor Manuel Jáquez Leal <vjaquez at igalia.com> ---
Review of attachment 349344:
 --> (https://bugzilla.gnome.org/review?bug=780442&attachment=349344)

::: gst-libs/gst/vaapi/gstvaapiwindow_wayland.c
@@ +421,3 @@
+  if (!frame->done) {
+    g_atomic_pointer_compare_and_exchange (&priv->last_frame, frame, NULL);
+    g_atomic_int_dec_and_test (&priv->num_frames_pending);

what about create an inlined function that does this 

 g_atomic_pointer_compare_and_exchange (&priv->last_frame, frame, NULL);
 g_atomic_int_dec_and_test (&priv->num_frames_pending);

so we could reuse it in frame_done_callback()

-- 
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