Fix up documentation blobs SGML

This commit is contained in:
Olivier Crête 2009-02-20 17:40:57 -05:00 committed by Edward Hervey
parent 22b1337ed7
commit b95b1516e5
5 changed files with 5 additions and 26 deletions

View file

@ -29,25 +29,19 @@
* SECTION:element-dtmfsrc * SECTION:element-dtmfsrc
* @short_description: Generates DTMF packets * @short_description: Generates DTMF packets
* *
* <refsect2>
*
* <para>
* The DTMFSrc element generates DTMF (ITU-T Q.23 Specification) tone packets on request * The DTMFSrc element generates DTMF (ITU-T Q.23 Specification) tone packets on request
* from application. The application communicates the beginning and end of a * from application. The application communicates the beginning and end of a
* DTMF event using custom upstream gstreamer events. To report a DTMF event, an * DTMF event using custom upstream gstreamer events. To report a DTMF event, an
* application must send an event of type GST_EVENT_CUSTOM_UPSTREAM, having a * application must send an event of type GST_EVENT_CUSTOM_UPSTREAM, having a
* structure of name "dtmf-event" with fields set according to the following * structure of name "dtmf-event" with fields set according to the following
* table: * table:
* </para>
* *
* <para>
* <informaltable> * <informaltable>
* <tgroup cols='4'> * <tgroup cols='4'>
* <colspec colname='Name' /> * <colspec colname='Name' />
* <colspec colname='Type' /> * <colspec colname='Type' />
* <colspec colname='Possible values' /> * <colspec colname='Possible values' />
* <colspec colname='Purpose' /> * <colspec colname='Purpose' />
*
* <thead> * <thead>
* <row> * <row>
* <entry>Name</entry> * <entry>Name</entry>
@ -56,7 +50,6 @@
* <entry>Purpose</entry> * <entry>Purpose</entry>
* </row> * </row>
* </thead> * </thead>
*
* <tbody> * <tbody>
* <row> * <row>
* <entry>type</entry> * <entry>type</entry>
@ -101,14 +94,11 @@
* </tbody> * </tbody>
* </tgroup> * </tgroup>
* </informaltable> * </informaltable>
* </para>
* *
* <para>For example, the following code informs the pipeline (and in turn, the * For example, the following code informs the pipeline (and in turn, the
* DTMFSrc element inside the pipeline) about the start of a DTMF named * DTMFSrc element inside the pipeline) about the start of a DTMF named
* event '1' of volume -25 dBm0: * event '1' of volume -25 dBm0:
* </para>
* *
* <para>
* <programlisting> * <programlisting>
* structure = gst_structure_new ("dtmf-event", * structure = gst_structure_new ("dtmf-event",
* "type", G_TYPE_INT, 1, * "type", G_TYPE_INT, 1,
@ -119,9 +109,7 @@
* event = gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, structure); * event = gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, structure);
* gst_element_send_event (pipeline, event); * gst_element_send_event (pipeline, event);
* </programlisting> * </programlisting>
* </para>
* *
* </refsect2>
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View file

@ -71,6 +71,7 @@ typedef struct _GstDTMFSrcEvent GstDTMFSrcEvent;
struct _GstDTMFSrc struct _GstDTMFSrc
{ {
/*< private >*/
GstBaseSrc parent; GstBaseSrc parent;
GAsyncQueue *event_queue; GAsyncQueue *event_queue;
GstDTMFSrcEvent *last_event; GstDTMFSrcEvent *last_event;

View file

@ -45,6 +45,7 @@ typedef struct _GstRtpDTMFDepayClass GstRtpDTMFDepayClass;
struct _GstRtpDTMFDepay struct _GstRtpDTMFDepay
{ {
/*< private >*/
GstBaseRTPDepayload depayload; GstBaseRTPDepayload depayload;
double sample; double sample;
guint32 previous_ts; guint32 previous_ts;

View file

@ -27,25 +27,19 @@
* SECTION:element-rtpdtmfsrc * SECTION:element-rtpdtmfsrc
* @short_description: Generates RTP DTMF packets * @short_description: Generates RTP DTMF packets
* *
* <refsect2>
*
* <para>
* The RTPDTMFSrc element generates RTP DTMF (RFC 2833) event packets on request * The RTPDTMFSrc element generates RTP DTMF (RFC 2833) event packets on request
* from application. The application communicates the beginning and end of a * from application. The application communicates the beginning and end of a
* DTMF event using custom upstream gstreamer events. To report a DTMF event, an * DTMF event using custom upstream gstreamer events. To report a DTMF event, an
* application must send an event of type GST_EVENT_CUSTOM_UPSTREAM, having a * application must send an event of type GST_EVENT_CUSTOM_UPSTREAM, having a
* structure of name "dtmf-event" with fields set according to the following * structure of name "dtmf-event" with fields set according to the following
* table: * table:
* </para>
* *
* <para>
* <informaltable> * <informaltable>
* <tgroup cols='4'> * <tgroup cols='4'>
* <colspec colname='Name' /> * <colspec colname='Name' />
* <colspec colname='Type' /> * <colspec colname='Type' />
* <colspec colname='Possible values' /> * <colspec colname='Possible values' />
* <colspec colname='Purpose' /> * <colspec colname='Purpose' />
*
* <thead> * <thead>
* <row> * <row>
* <entry>Name</entry> * <entry>Name</entry>
@ -54,7 +48,6 @@
* <entry>Purpose</entry> * <entry>Purpose</entry>
* </row> * </row>
* </thead> * </thead>
*
* <tbody> * <tbody>
* <row> * <row>
* <entry>type</entry> * <entry>type</entry>
@ -99,14 +92,11 @@
* </tbody> * </tbody>
* </tgroup> * </tgroup>
* </informaltable> * </informaltable>
* </para>
* *
* <para>For example, the following code informs the pipeline (and in turn, the * For example, the following code informs the pipeline (and in turn, the
* RTPDTMFSrc element inside the pipeline) about the start of an RTP DTMF named * RTPDTMFSrc element inside the pipeline) about the start of an RTP DTMF named
* event '1' of volume -25 dBm0: * event '1' of volume -25 dBm0:
* </para>
* *
* <para>
* <programlisting> * <programlisting>
* structure = gst_structure_new ("dtmf-event", * structure = gst_structure_new ("dtmf-event",
* "type", G_TYPE_INT, 1, * "type", G_TYPE_INT, 1,
@ -117,9 +107,7 @@
* event = gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, structure); * event = gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, structure);
* gst_element_send_event (pipeline, event); * gst_element_send_event (pipeline, event);
* </programlisting> * </programlisting>
* </para>
* *
* </refsect2>
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View file

@ -69,6 +69,7 @@ typedef struct _GstRTPDTMFSrcEvent GstRTPDTMFSrcEvent;
*/ */
struct _GstRTPDTMFSrc struct _GstRTPDTMFSrc
{ {
/*< private >*/
GstBaseSrc basesrc; GstBaseSrc basesrc;
GAsyncQueue *event_queue; GAsyncQueue *event_queue;