From 36b3b4cdbdcd2e2dd6828bb761efa76404712687 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 13 Jul 2006 15:25:58 +0000 Subject: docs/plugins/: add more plugins and elements to docs Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-bad-plugins-docs.sgml: * docs/plugins/gst-plugins-bad-plugins-sections.txt: add more plugins and elements to docs * gst/gdp/gstgdpdepay.c: (gst_gdp_depay_chain): fix segfaults due to wrong g_free add example * gst/gdp/gstgdppay.c: add example --- ChangeLog | 12 ++++++++++++ docs/plugins/Makefile.am | 2 ++ docs/plugins/gst-plugins-bad-plugins-docs.sgml | 8 +++++++- docs/plugins/gst-plugins-bad-plugins-sections.txt | 16 ++++++++++++++++ gst/gdp/gstgdpdepay.c | 13 ++++++++++++- gst/gdp/gstgdppay.c | 7 +++++++ 6 files changed, 56 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 909b4d2f..9ec90db5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2006-07-13 Thomas Vander Stichele + + * docs/plugins/Makefile.am: + * docs/plugins/gst-plugins-bad-plugins-docs.sgml: + * docs/plugins/gst-plugins-bad-plugins-sections.txt: + add more plugins and elements to docs + * gst/gdp/gstgdpdepay.c: (gst_gdp_depay_chain): + fix segfaults due to wrong g_free + add example + * gst/gdp/gstgdppay.c: + add example + 2006-07-13 Wim Taymans * gst/nsf/Makefile.am: diff --git a/docs/plugins/Makefile.am b/docs/plugins/Makefile.am index 28ce1435..a94cafe2 100644 --- a/docs/plugins/Makefile.am +++ b/docs/plugins/Makefile.am @@ -86,6 +86,8 @@ EXAMPLE_CFILES = \ $(top_srcdir)/ext/directfb/dfb-example.c EXTRA_HFILES = \ + $(top_srcdir)/gst/gdp/gstgdpdepay.h \ + $(top_srcdir)/gst/gdp/gstgdppay.h \ $(top_srcdir)/ext/directfb/dfbvideosink.h \ $(top_srcdir)/ext/musicbrainz/gsttrm.h diff --git a/docs/plugins/gst-plugins-bad-plugins-docs.sgml b/docs/plugins/gst-plugins-bad-plugins-docs.sgml index cf409fb0..0063bce3 100644 --- a/docs/plugins/gst-plugins-bad-plugins-docs.sgml +++ b/docs/plugins/gst-plugins-bad-plugins-docs.sgml @@ -14,25 +14,31 @@ gst-plugins-bad Elements + + gst-plugins-bad Plugins - + + + + + diff --git a/docs/plugins/gst-plugins-bad-plugins-sections.txt b/docs/plugins/gst-plugins-bad-plugins-sections.txt index ed069cab..1166bd99 100644 --- a/docs/plugins/gst-plugins-bad-plugins-sections.txt +++ b/docs/plugins/gst-plugins-bad-plugins-sections.txt @@ -1,3 +1,19 @@ +
+element-gdpdepay +GstGDPDepay +gdpdepay + +GstGDPDepayClass +
+ +
+element-gdppay +GstGDPPay +gdppay + +GstGDPPayClass +
+
element-dfbvideosink GstDfbVideoSink diff --git a/gst/gdp/gstgdpdepay.c b/gst/gdp/gstgdpdepay.c index 3f973b8b..21d6c730 100644 --- a/gst/gdp/gstgdpdepay.c +++ b/gst/gdp/gstgdpdepay.c @@ -26,6 +26,13 @@ * This element depayloads GStreamer Data Protocol buffers back to deserialized * buffers and events. * + * + * + * gst-launch -v -m filesrc location=test.gdp ! gdpdepay ! xvimagesink + * + * This pipeline plays back a serialized video stream as created in the + * example for gdppay. + * * */ @@ -231,6 +238,7 @@ gst_gdp_depay_chain (GstPad * pad, GstBuffer * buffer) payload = gst_adapter_take (this->adapter, this->payload_length); memcpy (GST_BUFFER_DATA (buf), payload, this->payload_length); g_free (payload); + payload = NULL; gst_buffer_set_caps (buf, this->caps); ret = gst_pad_push (this->srcpad, buf); @@ -250,6 +258,7 @@ gst_gdp_depay_chain (GstPad * pad, GstBuffer * buffer) caps = gst_dp_caps_from_packet (GST_DP_HEADER_LENGTH, this->header, payload); g_free (payload); + payload = NULL; if (!caps) { GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL), ("could not create caps from GDP packet")); @@ -273,8 +282,10 @@ gst_gdp_depay_chain (GstPad * pad, GstBuffer * buffer) payload = gst_adapter_take (this->adapter, this->payload_length); event = gst_dp_event_from_packet (GST_DP_HEADER_LENGTH, this->header, payload); - if (payload) + if (payload) { g_free (payload); + payload = NULL; + } if (!event) { GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL), ("could not create event from GDP packet")); diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index e80476e5..36585a02 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -26,6 +26,13 @@ * This element payloads GStreamer buffers and events using the * GStreamer Data Protocol. * + * + * + * gst-launch -v -m videotestsrc num-buffers=50 ! gdppay ! filesink location=test.gdp + * + * This pipeline creates a serialized video stream that can be played back + * with the example shown in gdpdepay. + * * */ -- cgit v1.2.1