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

Original commit message from CVS:
* gst/subparse/gstssaparse.c:
combine if's
This commit is contained in:
Thijs Vermeir 2007-12-29 20:55:39 +00:00
parent 41cc98e287
commit b3739a8e7d
2 changed files with 10 additions and 7 deletions

@ -1,3 +1,8 @@
2007-12-29 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/subparse/gstssaparse.c:
combine if's
2007-12-29 Thijs Vermeir <thijsvermeir@gmail.com> 2007-12-29 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/subparse/gstssaparse.c: * gst/subparse/gstssaparse.c:

@ -313,13 +313,11 @@ gst_ssa_parse_chain (GstPad * sinkpad, GstBuffer * buf)
ts = GST_BUFFER_TIMESTAMP (buf); ts = GST_BUFFER_TIMESTAMP (buf);
ret = gst_ssa_parse_push_line (parse, txt, ts, GST_BUFFER_DURATION (buf)); ret = gst_ssa_parse_push_line (parse, txt, ts, GST_BUFFER_DURATION (buf));
if (ret != GST_FLOW_OK) { if (ret != GST_FLOW_OK && GST_CLOCK_TIME_IS_VALID (ts)) {
if (GST_CLOCK_TIME_IS_VALID (ts)) { /* just advance time without sending anything */
/* just advance time without sending anything */ gst_pad_push_event (parse->srcpad,
gst_pad_push_event (parse->srcpad, gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_TIME, ts, -1, ts));
gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_TIME, ts, -1, ts)); ret = GST_FLOW_OK;
ret = GST_FLOW_OK;
}
} }
g_free (txt); g_free (txt);