summaryrefslogtreecommitdiffstats
path: root/gst/flv/gstflvdemux.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-10-28 18:41:19 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-10-28 18:41:19 +0000
commita85344333bfbc5dd4ac1d5d4e975e8027e606f1e (patch)
treee366dc94d3fd1aca48561dcc8ce2460e825a19f6 /gst/flv/gstflvdemux.h
parent8416cc94b58e0ea9d3c54fbf439202e0591a7b9f (diff)
downloadgst-plugins-bad-a85344333bfbc5dd4ac1d5d4e975e8027e606f1e.tar.gz
gst-plugins-bad-a85344333bfbc5dd4ac1d5d4e975e8027e606f1e.tar.bz2
gst-plugins-bad-a85344333bfbc5dd4ac1d5d4e975e8027e606f1e.zip
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.
Diffstat (limited to 'gst/flv/gstflvdemux.h')
-rw-r--r--gst/flv/gstflvdemux.h2
1 files changed, 1 insertions, 1 deletions
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;