mxfdemux: remove unread last_flow variable

it isn't necessary anymore and is already unused
This commit is contained in:
Thiago Santos 2014-05-27 07:42:14 -03:00
parent 6c92286c6e
commit b8d87c11ab
2 changed files with 2 additions and 18 deletions

View file

@ -103,7 +103,6 @@ gst_mxf_demux_pad_class_init (GstMXFDemuxPadClass * klass)
static void static void
gst_mxf_demux_pad_init (GstMXFDemuxPad * pad) gst_mxf_demux_pad_init (GstMXFDemuxPad * pad)
{ {
pad->last_flow = GST_FLOW_OK;
pad->position = 0; pad->position = 0;
} }
@ -283,19 +282,6 @@ gst_mxf_demux_reset (GstMXFDemux * demux)
demux->group_id = G_MAXUINT; demux->group_id = G_MAXUINT;
} }
static GstFlowReturn
gst_mxf_demux_combine_flows (GstMXFDemux * demux,
GstMXFDemuxPad * pad, GstFlowReturn ret)
{
/* store the value */
pad->last_flow = ret;
ret = gst_flow_combiner_update_flow (demux->flowcombiner, ret);
GST_LOG_OBJECT (demux, "combined return %s", gst_flow_get_name (ret));
return ret;
}
static GstFlowReturn static GstFlowReturn
gst_mxf_demux_pull_range (GstMXFDemux * demux, guint64 offset, gst_mxf_demux_pull_range (GstMXFDemux * demux, guint64 offset,
guint size, GstBuffer ** buffer) guint size, GstBuffer ** buffer)
@ -1839,7 +1825,8 @@ gst_mxf_demux_handle_generic_container_essence_element (GstMXFDemux * demux,
ret = gst_pad_push (GST_PAD_CAST (pad), outbuf); ret = gst_pad_push (GST_PAD_CAST (pad), outbuf);
outbuf = NULL; outbuf = NULL;
ret = gst_mxf_demux_combine_flows (demux, pad, ret); ret = gst_flow_combiner_update_flow (demux->flowcombiner, ret);
GST_LOG_OBJECT (demux, "combined return %s", gst_flow_get_name (ret));
if (pad->position > demux->segment.position) if (pad->position > demux->segment.position)
demux->segment.position = pad->position; demux->segment.position = pad->position;
@ -3239,7 +3226,6 @@ gst_mxf_demux_seek_push (GstMXFDemux * demux, GstEvent * event)
/* Reset EOS flag on all pads */ /* Reset EOS flag on all pads */
p->eos = FALSE; p->eos = FALSE;
p->last_flow = GST_FLOW_OK;
gst_mxf_demux_pad_set_position (demux, p, start); gst_mxf_demux_pad_set_position (demux, p, start);
position = p->current_essence_track_position; position = p->current_essence_track_position;
@ -3403,7 +3389,6 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event)
/* Reset EOS flag on all pads */ /* Reset EOS flag on all pads */
p->eos = FALSE; p->eos = FALSE;
p->last_flow = GST_FLOW_OK;
gst_mxf_demux_pad_set_position (demux, p, start); gst_mxf_demux_pad_set_position (demux, p, start);
/* we always want to send data starting with a key unit */ /* we always want to send data starting with a key unit */

View file

@ -96,7 +96,6 @@ struct _GstMXFDemuxPad
GstClockTime position; GstClockTime position;
gdouble position_accumulated_error; gdouble position_accumulated_error;
GstFlowReturn last_flow;
gboolean eos, discont; gboolean eos, discont;
GstTagList *tags; GstTagList *tags;