diff options
author | Antonio Ospite <ospite@studenti.unina.it> | 2013-10-25 14:56:16 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2013-10-30 18:46:37 +0100 |
commit | c76aaaaa1d3b9e33846ef2d07af3bcb3accef5c1 (patch) | |
tree | 69fd75b3effe7df49dfc0261d204e5e33ec617e0 | |
parent | 4ceeee9ff8f744d1fd0edf61f08e20b1568294e8 (diff) |
pwg: rename the "samplerate" variable to make example code compilable
In one of the examples about gst_my_filter_setcaps() there is a variable
declared as "rate", but then the name "samplerate" is used when setting
the caps.
Use the name "rate" everywhere in gst_my_filter_setcaps().
https://bugzilla.gnome.org/show_bug.cgi?id=710876
-rw-r--r-- | docs/pwg/advanced-negotiation.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pwg/advanced-negotiation.xml b/docs/pwg/advanced-negotiation.xml index 9ec99933c..ff57a66f8 100644 --- a/docs/pwg/advanced-negotiation.xml +++ b/docs/pwg/advanced-negotiation.xml @@ -249,7 +249,7 @@ gst_my_filter_setcaps (GstMyFilter *filter, outcaps = gst_caps_new_simple ("audio/x-raw", "format", G_TYPE_STRING, GST_AUDIO_NE(S16), - "rate", G_TYPE_INT, samplerate, + "rate", G_TYPE_INT, rate, "channels", G_TYPE_INT, channels, NULL); ret = gst_pad_set_caps (filter->srcpad, outcaps); gst_caps_unref (outcaps); |