pad-monitor: use correct variable for segment comparisons

Use the expected versus the received instead of using the received
twice.
This commit is contained in:
Thiago Santos 2013-08-09 12:37:49 -03:00
parent e679d8531e
commit 4af966f5ee

View file

@ -1163,7 +1163,8 @@ gst_qa_pad_monitor_sink_event_check (GstQaPadMonitor * pad_monitor,
GstFormat exp_format;
if (pad_monitor->expected_segment != event) {
gst_event_parse_new_segment_full (event, &exp_update, &exp_rate,
gst_event_parse_new_segment_full (pad_monitor->expected_segment,
&exp_update, &exp_rate,
&exp_applied_rate, &exp_format, &exp_start, &exp_stop,
&exp_position);
if (format == exp_format) {