2011/7/22 Maksym Veremeyenko <[email protected]>: > 21.07.11 23:34, Dan Dennedy написав(ла): >> 2011/7/19 Maksym Veremeyenko<[email protected]>: >>> So next step was to increase a decklink callback thread priority over >>> other >>> threads in MLT - >>> *0005-rise-DriverNotificationThreadFunction-priority.patch* >>> - that could give additional benefits on decklink hardware control >>> timings. >> >> Do you think this should this be controlled by a property? For example, >> if (mlt_property_get_int(properties, "priority")< -20) >> > > this patch trying to increase a priority of internal Decklink callback > thread: > > #0 DeckLinkConsumer::ScheduledFrameCompleted (this=0x80a61d0, > completedFrame=0xb642a398, completed=0) > at consumer_decklink.cpp:436 > #1 0x02473753 in CDeckLinkOutput::outputFrameCompletionCallback(unsigned > int, char) () from /usr/lib/libDeckLinkAPI.so > #2 0x024533b3 in CDeckLink::DriverNotificationThreadFunction(void*) () from > /usr/lib/libDeckLinkAPI.so > #3 0x00163e99 in start_thread () from /lib/libpthread.so.0 > #4 0x00250d2e in clone () from /lib/libc.so.6 > > priority of this thread could be inherited from priority of initialization > code, so another possible solution is: > > 1. save current thread priority> > 2. set new priority from mlt_property_get_int(properties, "priority") > 3. init decklink > 4. restore origin prio > > what do you thing about this?
I am a little worried if we know exactly when the thread inside decklink starts and therefore when to do step 4. But please do give it a try. Please be sure to rebase your patch on my latest commit that cleans up some of the parenthesis spacing in this file. -- +-DRD-+ ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
