GNOME Bugzilla – Bug 667724
decklinksrc: add timeout property
Last modified: 2018-05-04 09:52:01 UTC
Created attachment 205055 [details] [review] patch adding timeout property The decklink sdk doesn't provide a reliable EOS indicator. There is a flag that specifies whether a frame arrived with carrier signal, but it seems to give false negatives. Thus decklinksrc currently doesn't send an EOS signal, though this could be useful. Rather than using decklink's indicator, I've added a timeout property, which specifies in milliseconds how long to wait for a video frame before declaring EOS. A negative or zero value means to use the current behavior of never sending EOS and waiting forever for a new frame. I'm not wed to this implementation, but I do think that the timeout is a useful property.
I think we need to add something like this to BaseSrc, since it's needed by other elements, such as dvbsrc. I'm thinking along the lines of introducing the concept of "carrier" or "signal", and having bus messages for gain/loss of carrier. And combined with a timeout property, BaseSrc can send events based on loss of carrier/signal.
See also bug #668018
See also #680700
Comment on attachment 205055 [details] [review] patch adding timeout property This does not apply to the latest code anymore. Also there is now detection of there's signal or not, and no signal is marked on each buffer and changes are notified via messages. Does that also solve your use case?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!