Created
October 12, 2013 21:45
-
-
Save knocte/6955267 to your computer and use it in GitHub Desktop.
diff gstsharp 0.10-1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs | |
index d413918..9381e02 100644 | |
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs | |
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs | |
@@ -173,23 +175,27 @@ namespace Banshee.GStreamerSharp | |
"endianness = (int) BYTE_ORDER, " + | |
"width = (int) 32"); | |
- private void BlockCallback (Pad pad, bool blocked) | |
+ private PadProbeReturn BlockCallback (Pad pad, PadProbeInfo info) | |
{ | |
if (!blocked) { | |
// Set thawing mode (discards buffers that are too old from the queue). | |
vis_thawing = true; | |
} | |
+ return PadProbeReturn.Ok; | |
} | |
- | |
+ | |
+ private bool blocked; | |
private bool Blocked | |
{ | |
set { | |
if (vis_resampler == null) | |
return; | |
Pad queue_sink = vis_resampler.GetStaticPad ("src"); | |
- queue_sink.SetBlocked (value, new PadBlockCallback (BlockCallback)); | |
+ blocked = value; | |
+ queue_sink.AddProbe (PadProbeType.Block, BlockCallback); | |
} | |
} | |
+ | |
private event VisualizationDataHandler OnDataAvailable = null; | |
public event VisualizationDataHandler DataAvailable { | |
add { | |
@@ -215,14 +221,18 @@ namespace Banshee.GStreamerSharp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment