From a85344333bfbc5dd4ac1d5d4e975e8027e606f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 28 Oct 2008 18:41:19 +0000 Subject: gst/flv/: Put the GstSegment directly into the instance struct instead of allocating and free'ing it again. Original commit message from CVS: * gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup), (gst_flv_demux_loop), (gst_flv_demux_handle_seek_push), (gst_flv_demux_handle_seek_pull), (gst_flv_demux_sink_event), (gst_flv_demux_dispose), (gst_flv_demux_init): * gst/flv/gstflvdemux.h: * gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio), (gst_flv_parse_tag_video), (gst_flv_parse_tag_timestamp): Put the GstSegment directly into the instance struct instead of allocating and free'ing it again. Push tags already if only one pad was added, no need to wait for the second one. When generating our index set has_video and has_audio if we find video or audio in case the FLV header has incorrect data. --- gst/flv/gstflvdemux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/flv/gstflvdemux.h') diff --git a/gst/flv/gstflvdemux.h b/gst/flv/gstflvdemux.h index 3eb99ce0..1a675e7c 100644 --- a/gst/flv/gstflvdemux.h +++ b/gst/flv/gstflvdemux.h @@ -66,7 +66,7 @@ struct _GstFLVDemux GstAdapter *adapter; - GstSegment *segment; + GstSegment segment; GstEvent *close_seg_event; GstEvent *new_seg_event; -- cgit v1.2.1