mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 13:32:29 +00:00
inputselector: Remove useless variables and fix a uninitialized variable compiler warnings
This commit is contained in:
parent
6c15d9e8d4
commit
dfd51aa82a
1 changed files with 4 additions and 6 deletions
|
@ -557,7 +557,7 @@ gst_selector_pad_chain (GstPad * pad, GstBuffer * buf)
|
||||||
GstPad *active_sinkpad;
|
GstPad *active_sinkpad;
|
||||||
GstPad *prev_active_sinkpad;
|
GstPad *prev_active_sinkpad;
|
||||||
GstSelectorPad *selpad;
|
GstSelectorPad *selpad;
|
||||||
GstClockTime start_time, end_time, duration;
|
GstClockTime start_time;
|
||||||
GstSegment *seg;
|
GstSegment *seg;
|
||||||
GstEvent *close_event = NULL, *start_event = NULL;
|
GstEvent *close_event = NULL, *start_event = NULL;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
@ -581,11 +581,9 @@ gst_selector_pad_chain (GstPad * pad, GstBuffer * buf)
|
||||||
if (GST_CLOCK_TIME_IS_VALID (start_time)) {
|
if (GST_CLOCK_TIME_IS_VALID (start_time)) {
|
||||||
GST_DEBUG_OBJECT (pad, "received start time %" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (pad, "received start time %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (start_time));
|
GST_TIME_ARGS (start_time));
|
||||||
duration = GST_BUFFER_DURATION (buf);
|
if (GST_BUFFER_DURATION_IS_VALID (buf))
|
||||||
if (GST_CLOCK_TIME_IS_VALID (duration))
|
|
||||||
end_time += duration;
|
|
||||||
GST_DEBUG_OBJECT (pad, "received end time %" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (pad, "received end time %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (end_time));
|
GST_TIME_ARGS (start_time + GST_BUFFER_DURATION (buf)));
|
||||||
|
|
||||||
GST_OBJECT_LOCK (pad);
|
GST_OBJECT_LOCK (pad);
|
||||||
gst_segment_set_last_stop (seg, seg->format, start_time);
|
gst_segment_set_last_stop (seg, seg->format, start_time);
|
||||||
|
|
Loading…
Reference in a new issue