diff options
author | Josep Torra <n770galaxy@gmail.com> | 2011-08-25 23:26:08 +0200 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2011-08-26 14:11:15 +0200 |
commit | 81794a42486301b1afa3b41442701f825e789db7 (patch) | |
tree | 0ad04925f1eb6a73b1d2c57e0ed2d70d9f97050d | |
parent | ab3c6173b3c428e186900e1bcab8a2e4042d7e9b (diff) |
baseparse: use the enum values for 0 and don't abuse on gboolean coincidence
Fixes warning #188: enumerated type mixed with another type reported by ICC.
-rw-r--r-- | libs/gst/base/gstbaseparse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index d2c0da5bd..67e380a25 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -216,7 +216,7 @@ static const GstFormat fmtlist[] = { GST_FORMAT_DEFAULT, GST_FORMAT_BYTES, GST_FORMAT_TIME, - 0 + GST_FORMAT_UNDEFINED }; #define GST_BASE_PARSE_GET_PRIVATE(obj) \ @@ -3123,7 +3123,7 @@ gst_base_parse_get_querytypes (GstPad * pad) GST_QUERY_FORMATS, GST_QUERY_SEEKING, GST_QUERY_CONVERT, - 0 + GST_QUERY_NONE }; return list; @@ -3735,6 +3735,7 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event) } else { GstEvent *new_event; GstBaseParseSeek *seek; + GstSeekFlags flags = (flush ? GST_SEEK_FLAG_FLUSH : GST_SEEK_FLAG_NONE); /* The only thing we need to do in PUSH-mode is to send the seek event (in bytes) to upstream. Segment / flush handling happens @@ -3742,7 +3743,7 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event) GST_DEBUG_OBJECT (parse, "seek in PUSH mode"); if (seekstop >= 0 && seekpos <= seekpos) seekstop = seekpos; - new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flush, + new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, GST_SEEK_TYPE_SET, seekpos, stop_type, seekstop); /* store segment info so its precise details can be reconstructed when |