diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-10-27 09:45:04 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-10-27 09:45:04 +0000 |
commit | 967088f0740082e2ab4ea3da18e66a9e4ac49bc8 (patch) | |
tree | 23976360286de0adb5473271c1aa49cebd6349d7 /gst/flv/gstflvparse.h | |
parent | 1a0b218006b38173270aba5b8a68d54bcb0d8496 (diff) | |
download | gst-plugins-bad-967088f0740082e2ab4ea3da18e66a9e4ac49bc8.tar.gz gst-plugins-bad-967088f0740082e2ab4ea3da18e66a9e4ac49bc8.tar.bz2 gst-plugins-bad-967088f0740082e2ab4ea3da18e66a9e4ac49bc8.zip |
gst/flv/: Don't memcpy() all data we want to push downstream, instead just create subbuffers and push them downstream.
Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_chain),
(gst_flv_demux_pull_tag), (gst_flv_demux_pull_header),
(gst_flv_demux_create_index):
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_script),
(gst_flv_parse_tag_audio), (gst_flv_parse_tag_video),
(gst_flv_parse_tag_timestamp), (gst_flv_parse_tag_type),
(gst_flv_parse_header):
* gst/flv/gstflvparse.h:
Don't memcpy() all data we want to push downstream, instead just
create subbuffers and push them downstream.
Fix some minor memory leaks.
Diffstat (limited to 'gst/flv/gstflvparse.h')
-rw-r--r-- | gst/flv/gstflvparse.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/gst/flv/gstflvparse.h b/gst/flv/gstflvparse.h index 55eae29e..203d30de 100644 --- a/gst/flv/gstflvparse.h +++ b/gst/flv/gstflvparse.h @@ -23,22 +23,20 @@ #include "gstflvdemux.h" G_BEGIN_DECLS - GstFlowReturn gst_flv_parse_tag_script (GstFLVDemux * demux, - const guint8 * data, size_t data_size); -GstFlowReturn gst_flv_parse_tag_audio (GstFLVDemux * demux, const guint8 * data, - size_t data_size); -GstFlowReturn gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data, - size_t data_size); +GstFlowReturn gst_flv_parse_tag_script (GstFLVDemux * demux, + GstBuffer *buffer); -GstFlowReturn gst_flv_parse_tag_type (GstFLVDemux * demux, const guint8 * data, - size_t data_size); +GstFlowReturn gst_flv_parse_tag_audio (GstFLVDemux * demux, GstBuffer *buffer); -GstFlowReturn gst_flv_parse_header (GstFLVDemux * demux, const guint8 * data, - size_t data_size); +GstFlowReturn gst_flv_parse_tag_video (GstFLVDemux * demux, GstBuffer *buffer); -GstClockTime gst_flv_parse_tag_timestamp (GstFLVDemux *demux, const guint8 *data, size_t data_size, size_t *tag_data_size); +GstFlowReturn gst_flv_parse_tag_type (GstFLVDemux * demux, GstBuffer *buffer); + +GstFlowReturn gst_flv_parse_header (GstFLVDemux * demux, GstBuffer *buffer); + +GstClockTime gst_flv_parse_tag_timestamp (GstFLVDemux *demux, GstBuffer *buffer, size_t *tag_data_size); G_END_DECLS #endif /* __FLV_PARSE_H__ */ |