mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
baseparse: change gst_base_parse_frame_init() to not take a GstBaseParse argument
This commit is contained in:
parent
e8ccbf4ca9
commit
8fe1924678
2 changed files with 4 additions and 6 deletions
|
@ -580,7 +580,6 @@ gst_base_parse_frame_get_type (void)
|
|||
|
||||
/**
|
||||
* gst_base_parse_frame_init:
|
||||
* @parse: #GstBaseParse.
|
||||
* @frame: #GstBaseParseFrame.
|
||||
*
|
||||
* Sets a #GstBaseParseFrame to initial state. Currently this means
|
||||
|
@ -592,7 +591,7 @@ gst_base_parse_frame_get_type (void)
|
|||
* Since: 0.10.33
|
||||
*/
|
||||
void
|
||||
gst_base_parse_frame_init (GstBaseParse * parse, GstBaseParseFrame * frame)
|
||||
gst_base_parse_frame_init (GstBaseParseFrame * frame)
|
||||
{
|
||||
memset (frame, 0, sizeof (GstBaseParseFrame));
|
||||
frame->_private_flags = GST_BASE_PARSE_FRAME_PRIVATE_FLAG_NOALLOC;
|
||||
|
@ -2585,7 +2584,7 @@ gst_base_parse_loop (GstPad * pad)
|
|||
}
|
||||
}
|
||||
|
||||
gst_base_parse_frame_init (parse, &frame);
|
||||
gst_base_parse_frame_init (&frame);
|
||||
ret = gst_base_parse_scan_frame (parse, klass, &frame, TRUE);
|
||||
if (ret != GST_FLOW_OK)
|
||||
goto done;
|
||||
|
@ -3178,7 +3177,7 @@ gst_base_parse_find_frame (GstBaseParse * parse, gint64 * pos,
|
|||
GST_DEBUG_OBJECT (parse, "scanning for frame starting at %" G_GINT64_FORMAT
|
||||
" (%#" G_GINT64_MODIFIER "x)", *pos, *pos);
|
||||
|
||||
gst_base_parse_frame_init (parse, &frame);
|
||||
gst_base_parse_frame_init (&frame);
|
||||
|
||||
/* jump elsewhere and locate next frame */
|
||||
parse->priv->offset = *pos;
|
||||
|
|
|
@ -264,8 +264,7 @@ GstBaseParseFrame * gst_base_parse_frame_new (GstBuffer * buffer,
|
|||
GstBaseParseFrameFlags flags,
|
||||
gint overhead);
|
||||
|
||||
void gst_base_parse_frame_init (GstBaseParse * parse,
|
||||
GstBaseParseFrame * frame);
|
||||
void gst_base_parse_frame_init (GstBaseParseFrame * frame);
|
||||
|
||||
GstFlowReturn gst_base_parse_push_frame (GstBaseParse * parse,
|
||||
GstBaseParseFrame * frame);
|
||||
|
|
Loading…
Reference in a new issue