Skip to content

Instantly share code, notes, and snippets.

@knocte
Created October 12, 2013 21:09
Show Gist options
  • Save knocte/6954949 to your computer and use it in GitHub Desktop.
Save knocte/6954949 to your computer and use it in GitHub Desktop.
addprobe?
private bool Blocked
{
set {
if (vis_resampler == null)
return;
Pad queue_sink = vis_resampler.GetStaticPad ("src");
queue_sink.SetBlocked (value, new PadBlockCallback (BlockCallback));
}
}
private void BlockCallback (Pad pad, bool blocked)
{
if (!blocked) {
// Set thawing mode (discards buffers that are too old from the queue).
vis_thawing = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment