diff options
author | Jan Schmidt <jan.schmidt@sun.com> | 2009-01-30 18:18:10 +0000 |
---|---|---|
committer | Jan Schmidt <jan.schmidt@sun.com> | 2009-01-30 18:18:10 +0000 |
commit | 4ccbb0309fdd713ad00c535ddbde95d2402091e9 (patch) | |
tree | f28f8a215e7f2626f56c3f49839fb4677d4b02ad | |
parent | 9688ba1a1104bb75853f65152437c029acefb4a5 (diff) | |
download | gst-plugins-bad-4ccbb0309fdd713ad00c535ddbde95d2402091e9.tar.gz gst-plugins-bad-4ccbb0309fdd713ad00c535ddbde95d2402091e9.tar.bz2 gst-plugins-bad-4ccbb0309fdd713ad00c535ddbde95d2402091e9.zip |
Fix the return value of the default parse_frame function.
Fix the return value of the default parse_frame function in both
copies of GstBaseParse
-rw-r--r-- | gst/aacparse/gstbaseparse.c | 6 | ||||
-rw-r--r-- | gst/amrparse/gstbaseparse.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gst/aacparse/gstbaseparse.c b/gst/aacparse/gstbaseparse.c index 258199cd..baa56826 100644 --- a/gst/aacparse/gstbaseparse.c +++ b/gst/aacparse/gstbaseparse.c @@ -272,7 +272,7 @@ static void gst_base_parse_loop (GstPad * pad); static gboolean gst_base_parse_check_frame (GstBaseParse * parse, GstBuffer * buffer, guint * framesize, gint * skipsize); -static gboolean gst_base_parse_parse_frame (GstBaseParse * parse, +static GstFlowReturn gst_base_parse_parse_frame (GstBaseParse * parse, GstBuffer * buffer); static gboolean gst_base_parse_sink_eventfunc (GstBaseParse * parse, @@ -443,13 +443,13 @@ gst_base_parse_check_frame (GstBaseParse * parse, * * Default callback for parse_frame. */ -static gboolean +static GstFlowReturn gst_base_parse_parse_frame (GstBaseParse * parse, GstBuffer * buffer) { /* FIXME: Could we even _try_ to do something clever here? */ GST_BUFFER_TIMESTAMP (buffer) = GST_CLOCK_TIME_NONE; GST_BUFFER_DURATION (buffer) = GST_CLOCK_TIME_NONE; - return TRUE; + return GST_FLOW_OK; } diff --git a/gst/amrparse/gstbaseparse.c b/gst/amrparse/gstbaseparse.c index b48047bf..dc82472d 100644 --- a/gst/amrparse/gstbaseparse.c +++ b/gst/amrparse/gstbaseparse.c @@ -272,7 +272,7 @@ static void gst_base_parse_loop (GstPad * pad); static gboolean gst_base_parse_check_frame (GstBaseParse * parse, GstBuffer * buffer, guint * framesize, gint * skipsize); -static gboolean gst_base_parse_parse_frame (GstBaseParse * parse, +static GstFlowReturn gst_base_parse_parse_frame (GstBaseParse * parse, GstBuffer * buffer); static gboolean gst_base_parse_sink_eventfunc (GstBaseParse * parse, @@ -443,13 +443,13 @@ gst_base_parse_check_frame (GstBaseParse * parse, * * Default callback for parse_frame. */ -static gboolean +static GstFlowReturn gst_base_parse_parse_frame (GstBaseParse * parse, GstBuffer * buffer) { /* FIXME: Could we even _try_ to do something clever here? */ GST_BUFFER_TIMESTAMP (buffer) = GST_CLOCK_TIME_NONE; GST_BUFFER_DURATION (buffer) = GST_CLOCK_TIME_NONE; - return TRUE; + return GST_FLOW_OK; } |