mpegdemux: remove obsolete struct field

This commit is contained in:
Mark Nauwelaerts 2012-10-12 22:31:53 +02:00
parent e3a1e489d2
commit f708ab8de9
2 changed files with 0 additions and 15 deletions

View file

@ -299,7 +299,6 @@ gst_flups_demux_reset (GstFluPSDemux * demux)
{ {
/* Clean up the streams and pads we allocated */ /* Clean up the streams and pads we allocated */
gint i; gint i;
GstEvent **p_ev;
for (i = 0; i < GST_FLUPS_DEMUX_MAX_STREAMS; i++) { for (i = 0; i < GST_FLUPS_DEMUX_MAX_STREAMS; i++) {
GstFluPSStream *stream = demux->streams[i]; GstFluPSStream *stream = demux->streams[i];
@ -315,9 +314,6 @@ gst_flups_demux_reset (GstFluPSDemux * demux)
memset (demux->streams_found, 0, memset (demux->streams_found, 0,
sizeof (GstFluPSStream *) * (GST_FLUPS_DEMUX_MAX_STREAMS)); sizeof (GstFluPSStream *) * (GST_FLUPS_DEMUX_MAX_STREAMS));
demux->found_count = 0; demux->found_count = 0;
p_ev = &demux->lang_codes;
gst_event_replace (p_ev, NULL);
gst_adapter_clear (demux->adapter); gst_adapter_clear (demux->adapter);
gst_adapter_clear (demux->rev_adapter); gst_adapter_clear (demux->rev_adapter);
@ -692,13 +688,6 @@ gst_flups_demux_handle_dvd_event (GstFluPSDemux * demux, GstEvent * event)
GstFluPSStream *temp G_GNUC_UNUSED; GstFluPSStream *temp G_GNUC_UNUSED;
if (strcmp (type, "dvd-lang-codes") == 0) { if (strcmp (type, "dvd-lang-codes") == 0) {
GstEvent **p_ev;
/* Store the language codes event on the element, then iterate over the
* streams it specifies and retrieve them. The stream creation code then
* creates the pad appropriately and sends tag events as needed */
p_ev = &demux->lang_codes;
gst_event_replace (p_ev, event);
GST_DEBUG_OBJECT (demux, "Handling language codes event"); GST_DEBUG_OBJECT (demux, "Handling language codes event");
/* Create a video pad to ensure have it before emit no more pads */ /* Create a video pad to ensure have it before emit no more pads */

View file

@ -146,10 +146,6 @@ struct _GstFluPSDemux
/* Indicates an MPEG-2 stream */ /* Indicates an MPEG-2 stream */
gboolean is_mpeg2_pack; gboolean is_mpeg2_pack;
/* Language codes event is stored when a dvd-lang-codes
* custom event arrives from upstream */
GstEvent *lang_codes;
}; };
struct _GstFluPSDemuxClass struct _GstFluPSDemuxClass