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
This commit is contained in:
parent
17582f36fc
commit
01d7de7e2d
@ -26,6 +26,13 @@
|
|||||||
* This element depayloads GStreamer Data Protocol buffers back to deserialized
|
* This element depayloads GStreamer Data Protocol buffers back to deserialized
|
||||||
* buffers and events.
|
* buffers and events.
|
||||||
* </para>
|
* </para>
|
||||||
|
* <para>
|
||||||
|
* <programlisting>
|
||||||
|
* gst-launch -v -m filesrc location=test.gdp ! gdpdepay ! xvimagesink
|
||||||
|
* </programlisting>
|
||||||
|
* This pipeline plays back a serialized video stream as created in the
|
||||||
|
* example for gdppay.
|
||||||
|
* </para>
|
||||||
* </refsect2>
|
* </refsect2>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -231,6 +238,7 @@ gst_gdp_depay_chain (GstPad * pad, GstBuffer * buffer)
|
|||||||
payload = gst_adapter_take (this->adapter, this->payload_length);
|
payload = gst_adapter_take (this->adapter, this->payload_length);
|
||||||
memcpy (GST_BUFFER_DATA (buf), payload, this->payload_length);
|
memcpy (GST_BUFFER_DATA (buf), payload, this->payload_length);
|
||||||
g_free (payload);
|
g_free (payload);
|
||||||
|
payload = NULL;
|
||||||
|
|
||||||
gst_buffer_set_caps (buf, this->caps);
|
gst_buffer_set_caps (buf, this->caps);
|
||||||
ret = gst_pad_push (this->srcpad, buf);
|
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,
|
caps = gst_dp_caps_from_packet (GST_DP_HEADER_LENGTH, this->header,
|
||||||
payload);
|
payload);
|
||||||
g_free (payload);
|
g_free (payload);
|
||||||
|
payload = NULL;
|
||||||
if (!caps) {
|
if (!caps) {
|
||||||
GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL),
|
||||||
("could not create caps from GDP packet"));
|
("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);
|
payload = gst_adapter_take (this->adapter, this->payload_length);
|
||||||
event = gst_dp_event_from_packet (GST_DP_HEADER_LENGTH, this->header,
|
event = gst_dp_event_from_packet (GST_DP_HEADER_LENGTH, this->header,
|
||||||
payload);
|
payload);
|
||||||
if (payload)
|
if (payload) {
|
||||||
g_free (payload);
|
g_free (payload);
|
||||||
|
payload = NULL;
|
||||||
|
}
|
||||||
if (!event) {
|
if (!event) {
|
||||||
GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL),
|
||||||
("could not create event from GDP packet"));
|
("could not create event from GDP packet"));
|
||||||
|
@ -26,6 +26,13 @@
|
|||||||
* This element payloads GStreamer buffers and events using the
|
* This element payloads GStreamer buffers and events using the
|
||||||
* GStreamer Data Protocol.
|
* GStreamer Data Protocol.
|
||||||
* </para>
|
* </para>
|
||||||
|
* <para>
|
||||||
|
* <programlisting>
|
||||||
|
* gst-launch -v -m videotestsrc num-buffers=50 ! gdppay ! filesink location=test.gdp
|
||||||
|
* </programlisting>
|
||||||
|
* This pipeline creates a serialized video stream that can be played back
|
||||||
|
* with the example shown in gdpdepay.
|
||||||
|
* </para>
|
||||||
* </refsect2>
|
* </refsect2>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user