mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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
This commit is contained in:
parent
8b20a1d46f
commit
06f4cbd7f3
1 changed files with 3 additions and 3 deletions
|
@ -272,7 +272,7 @@ static void gst_base_parse_loop (GstPad * pad);
|
||||||
static gboolean gst_base_parse_check_frame (GstBaseParse * parse,
|
static gboolean gst_base_parse_check_frame (GstBaseParse * parse,
|
||||||
GstBuffer * buffer, guint * framesize, gint * skipsize);
|
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);
|
GstBuffer * buffer);
|
||||||
|
|
||||||
static gboolean gst_base_parse_sink_eventfunc (GstBaseParse * parse,
|
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.
|
* Default callback for parse_frame.
|
||||||
*/
|
*/
|
||||||
static gboolean
|
static GstFlowReturn
|
||||||
gst_base_parse_parse_frame (GstBaseParse * parse, GstBuffer * buffer)
|
gst_base_parse_parse_frame (GstBaseParse * parse, GstBuffer * buffer)
|
||||||
{
|
{
|
||||||
/* FIXME: Could we even _try_ to do something clever here? */
|
/* FIXME: Could we even _try_ to do something clever here? */
|
||||||
GST_BUFFER_TIMESTAMP (buffer) = GST_CLOCK_TIME_NONE;
|
GST_BUFFER_TIMESTAMP (buffer) = GST_CLOCK_TIME_NONE;
|
||||||
GST_BUFFER_DURATION (buffer) = GST_CLOCK_TIME_NONE;
|
GST_BUFFER_DURATION (buffer) = GST_CLOCK_TIME_NONE;
|
||||||
return TRUE;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue