Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From ed7f4802222234eef192aa3f74bc92268f338f97 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sebastian Droege <sebastian.droege@collabora.co.uk> |
| 3 | Date: Tue, 6 Mar 2012 12:28:02 +0100 |
| 4 | Subject: [PATCH] baseparse: Fix 'self-comparison always evaluates to true' |
| 5 | |
| 6 | This was really a bug. |
| 7 | |
| 8 | Commit is ed7f4802222234eef192aa3f74bc92268f338f97 in 0.10 branch |
| 9 | |
| 10 | Upstream Status: Backported |
| 11 | |
| 12 | Signed-off-by: Sebastian Droege <sebastian.droege@collabora.co.uk> |
| 13 | --- |
| 14 | libs/gst/base/gstbaseparse.c | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c |
| 18 | index 851ec1d..108ee89 100644 |
| 19 | --- a/libs/gst/base/gstbaseparse.c |
| 20 | +++ b/libs/gst/base/gstbaseparse.c |
| 21 | @@ -3899,7 +3899,7 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event) |
| 22 | seek event (in bytes) to upstream. Segment / flush handling happens |
| 23 | in corresponding src event handlers */ |
| 24 | GST_DEBUG_OBJECT (parse, "seek in PUSH mode"); |
| 25 | - if (seekstop >= 0 && seekpos <= seekpos) |
| 26 | + if (seekstop >= 0 && seekstop <= seekpos) |
| 27 | seekstop = seekpos; |
| 28 | new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, |
| 29 | GST_SEEK_TYPE_SET, seekpos, stop_type, seekstop); |
| 30 | -- |
| 31 | 1.7.9.5 |
| 32 | |