mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
A bug in PlaybackTutorial7.cs
A custom sink is set after starting playback and the equalizer has no effect. https://bugzilla.gnome.org/show_bug.cgi?id=796690
This commit is contained in:
parent
3acb989f40
commit
c58cfe4b6e
1 changed files with 10 additions and 11 deletions
|
@ -36,6 +36,13 @@ namespace GstreamerSharp
|
||||||
ghostPad.SetActive (true);
|
ghostPad.SetActive (true);
|
||||||
bin.AddPad (ghostPad);
|
bin.AddPad (ghostPad);
|
||||||
|
|
||||||
|
// Configure the equalizer
|
||||||
|
equalizer["band1"] = (double)-24.0;
|
||||||
|
equalizer["band2"] = (double)-24.0;
|
||||||
|
|
||||||
|
// Set playbin's audio sink to be our sink bin
|
||||||
|
pipeline["audio-sink"] = bin;
|
||||||
|
|
||||||
// Start playing
|
// Start playing
|
||||||
var ret = pipeline.SetState (State.Playing);
|
var ret = pipeline.SetState (State.Playing);
|
||||||
if (ret == StateChangeReturn.Failure) {
|
if (ret == StateChangeReturn.Failure) {
|
||||||
|
@ -43,14 +50,6 @@ namespace GstreamerSharp
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Configure the equalizer
|
|
||||||
equalizer ["band1"] = (double)-24.0;
|
|
||||||
equalizer ["band2"] = (double)-24.0;
|
|
||||||
|
|
||||||
// Set playbin's audio sink to be our sink bin
|
|
||||||
pipeline ["audio-sink"] = bin;
|
|
||||||
|
|
||||||
// Wait until error or EOS
|
// Wait until error or EOS
|
||||||
var bus = pipeline.Bus;
|
var bus = pipeline.Bus;
|
||||||
var msg = bus.TimedPopFiltered (Constants.CLOCK_TIME_NONE, MessageType.Error | MessageType.Eos);
|
var msg = bus.TimedPopFiltered (Constants.CLOCK_TIME_NONE, MessageType.Error | MessageType.Eos);
|
||||||
|
|
Loading…
Reference in a new issue