Commit b3739a8e authored by Thijs Vermeir's avatar Thijs Vermeir

gst/subparse/gstssaparse.c: combine if's

Original commit message from CVS:
* gst/subparse/gstssaparse.c:
combine if's
parent 41cc98e2
2007-12-29 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/subparse/gstssaparse.c:
combine if's
2007-12-29 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/subparse/gstssaparse.c:
......@@ -313,13 +313,11 @@ gst_ssa_parse_chain (GstPad * sinkpad, GstBuffer * buf)
ts = GST_BUFFER_TIMESTAMP (buf);
ret = gst_ssa_parse_push_line (parse, txt, ts, GST_BUFFER_DURATION (buf));
if (ret != GST_FLOW_OK) {
if (GST_CLOCK_TIME_IS_VALID (ts)) {
/* just advance time without sending anything */
gst_pad_push_event (parse->srcpad,
gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_TIME, ts, -1, ts));
ret = GST_FLOW_OK;
}
if (ret != GST_FLOW_OK && GST_CLOCK_TIME_IS_VALID (ts)) {
/* just advance time without sending anything */
gst_pad_push_event (parse->srcpad,
gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_TIME, ts, -1, ts));
ret = GST_FLOW_OK;
}
g_free (txt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment