pwg: rename the "samplerate" variable to make example code compilable
authorAntonio Ospite <ospite@studenti.unina.it>
Fri, 25 Oct 2013 12:56:16 +0000 (14:56 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 30 Oct 2013 17:46:37 +0000 (18:46 +0100)
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

docs/pwg/advanced-negotiation.xml

index 9ec9993..ff57a66 100644 (file)
@@ -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);