From: Thijs Vermeir Date: Sat, 29 Dec 2007 19:23:59 +0000 (+0000) Subject: gst/subparse/gstssaparse.c: remove duplicate log message X-Git-Tag: RELEASE-0_10_16~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41cc98e287ea791704d52d48285b4ce9e72e90e4;p=platform%2Fupstream%2Fgst-plugins-base.git gst/subparse/gstssaparse.c: remove duplicate log message Original commit message from CVS: * gst/subparse/gstssaparse.c: remove duplicate log message --- diff --git a/ChangeLog b/ChangeLog index b3922a0..5c0c2f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-29 Thijs Vermeir + + * gst/subparse/gstssaparse.c: + remove duplicate log message + 2007-12-29 Sebastian Dröge * ext/libvisual/visual.c: (gst_visual_chain): diff --git a/gst/subparse/gstssaparse.c b/gst/subparse/gstssaparse.c index d876f1b..b7de847 100644 --- a/gst/subparse/gstssaparse.c +++ b/gst/subparse/gstssaparse.c @@ -222,8 +222,20 @@ gst_ssa_parse_remove_override_codes (GstSsaParse * parse, gchar * txt) return removed_any; } +/** + * gst_ssa_parse_push_line: + * @parse: caller element + * @txt: text to push + * @start: timestamp for the buffer + * @duration: duration for the buffer + * + * Parse the text in a buffer with the given properties and + * push it to the srcpad of the @parse element + * + * Returns: result of the push of the created buffer + */ static GstFlowReturn -gst_ssa_parse_parse_line (GstSsaParse * parse, gchar * txt, +gst_ssa_parse_push_line (GstSsaParse * parse, gchar * txt, GstClockTime start, GstClockTime duration) { GstFlowReturn ret; @@ -274,7 +286,8 @@ gst_ssa_parse_parse_line (GstSsaParse * parse, gchar * txt, ret = gst_pad_push (parse->srcpad, buf); if (ret != GST_FLOW_OK) { - GST_DEBUG_OBJECT (parse, "Push returned flow %s", gst_flow_get_name (ret)); + GST_DEBUG_OBJECT (parse, "Push of text '%s' returned flow %s", txt, + gst_flow_get_name (ret)); } return ret; @@ -298,10 +311,9 @@ gst_ssa_parse_chain (GstPad * sinkpad, GstBuffer * buf) return GST_FLOW_UNEXPECTED; ts = GST_BUFFER_TIMESTAMP (buf); - ret = gst_ssa_parse_parse_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) { - GST_WARNING_OBJECT (parse, "Failed to parse dialog line '%s'", txt); if (GST_CLOCK_TIME_IS_VALID (ts)) { /* just advance time without sending anything */ gst_pad_push_event (parse->srcpad,