[Bug 709174] Add avfvideosrc to the OS X build in applemedia

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Oct 30 14:35:06 CET 2013


https://bugzilla.gnome.org/show_bug.cgi?id=709174
  GStreamer | gst-plugins-bad | git

--- Comment #19 from Andoni Morales <ylatuya at gmail.com> 2013-10-30 13:35:00 UTC ---
I think we can rework a bit how the dispatch queues are being used. We want to
do all the AVFoundation work in the main queue, but we are using the following
model:
  dispatch_async
  wait_for_queue_to_drain

instead of:
  dispatch_sync

Since it's a serial queue, wait_for_queue can block if its called from the same
queue. get_current_queue was being used to avoid this situation.

But I think we can use dispatch_sync (mainQueue, for all the work in the main
queue, because we actually want that to be executed synchronously and wait for
that block executed in the main queue to be finished.

There is only one place where we use [self waitForWorkerQueueToDrain], in
stop() and that can be safely replaced with  dispatch_sync (workerQueue, ^{})
because stop is never being called from the worker queue.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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