diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2018-03-11 12:28:57 -0300 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2018-03-11 21:23:12 -0300 |
commit | f9044e93e160b0f9a0cf86d8bc93a58665ec60cd (patch) | |
tree | d1d039913cbeb87a6871f3b90ec20cee54c38a9b /samples | |
parent | 422875b2761203555a18568a83d61e9aedc3b077 (diff) |
Update to 1.13.90
* Hide new GstAudioAggregator for now (needs some work)
* Fix the GstAudioInfo.SetFormat API and its use in the samples (it was plain broken
and fixes in the annotation fixed it)
Diffstat (limited to 'samples')
-rw-r--r-- | samples/BasicTutorial8.cs | 3 | ||||
-rw-r--r-- | samples/PlaybackTutorial3.cs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/samples/BasicTutorial8.cs b/samples/BasicTutorial8.cs index 2b4bde5..34c4e6c 100644 --- a/samples/BasicTutorial8.cs +++ b/samples/BasicTutorial8.cs @@ -160,7 +160,8 @@ namespace GstreamerSharp Visual ["style"] = 0; // Configure appsrc - info.SetFormat (Gst.Audio.AudioFormat.S16, SampleRate, 1, (Gst.Audio.AudioChannelPosition) 0); + Gst.Audio.AudioChannelPosition[] position = {}; + info.SetFormat (Gst.Audio.AudioFormat.S16, SampleRate, 1, position); var audioCaps = info.ToCaps (); AppSource ["caps"] = audioCaps; AppSource ["format"] = Format.Time; diff --git a/samples/PlaybackTutorial3.cs b/samples/PlaybackTutorial3.cs index dc725b0..c597ca6 100644 --- a/samples/PlaybackTutorial3.cs +++ b/samples/PlaybackTutorial3.cs @@ -99,7 +99,8 @@ namespace GstreamerSharp AppSource = source; // Configure appsrc - info.SetFormat (Gst.Audio.AudioFormat.S16, SampleRate, 1, (Gst.Audio.AudioChannelPosition)0); + Gst.Audio.AudioChannelPosition[] position = {}; + info.SetFormat (Gst.Audio.AudioFormat.S16, SampleRate, 1, position); var audioCaps = info.ToCaps (); source ["caps"] = audioCaps; source ["format"] = Format.Time; |