~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to docs/pwg/building-boiler.xml

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-10-25 13:23:04 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20121025132304-d4h5101bepls2o8n
Tags: 1.0.2-1
New upstream stable release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
378
378
      correct template would look like this:
379
379
    </para>
380
380
    <programlisting>
 
381
<![CDATA[
381
382
static GstStaticPadTemplate sink_factory =
382
383
GST_STATIC_PAD_TEMPLATE (
383
384
  "sink",
390
391
      "rate = (int) [ 8000, 96000 ]"
391
392
  )
392
393
);
 
394
]]>
393
395
    </programlisting>
394
396
    <para>
395
397
      Values surrounded by curly brackets (<quote>{</quote> and
428
430
      Also, in this function, any supported element type in the plugin should
429
431
      be registered.
430
432
    </para>
431
 
    <programlisting><!-- example-begin register.func -->
 
433
    <programlisting>
 
434
<!-- example-begin register.func -->
 
435
<![CDATA[
432
436
static gboolean
433
437
plugin_init (GstPlugin *plugin)
434
438
{
448
452
  "GStreamer",
449
453
  "http://gstreamer.net/"
450
454
)
451
 
    <!-- example-end register.func --></programlisting>
 
455
]]>
 
456
<!-- example-end register.func -->
 
457
    </programlisting>
452
458
    <para>
453
459
      Note that the information returned by the plugin_init() function will be
454
460
      cached in a central registry. For this reason, it is important that the