mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-01 01:33:52 +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:
|
* gst_base_parse_frame_init:
|
||||||
* @parse: #GstBaseParse.
|
|
||||||
* @frame: #GstBaseParseFrame.
|
* @frame: #GstBaseParseFrame.
|
||||||
*
|
*
|
||||||
* Sets a #GstBaseParseFrame to initial state. Currently this means
|
* Sets a #GstBaseParseFrame to initial state. Currently this means
|
||||||
|
@ -592,7 +591,7 @@ gst_base_parse_frame_get_type (void)
|
||||||
* Since: 0.10.33
|
* Since: 0.10.33
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_base_parse_frame_init (GstBaseParse * parse, GstBaseParseFrame * frame)
|
gst_base_parse_frame_init (GstBaseParseFrame * frame)
|
||||||
{
|
{
|
||||||
memset (frame, 0, sizeof (GstBaseParseFrame));
|
memset (frame, 0, sizeof (GstBaseParseFrame));
|
||||||
frame->_private_flags = GST_BASE_PARSE_FRAME_PRIVATE_FLAG_NOALLOC;
|
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);
|
ret = gst_base_parse_scan_frame (parse, klass, &frame, TRUE);
|
||||||
if (ret != GST_FLOW_OK)
|
if (ret != GST_FLOW_OK)
|
||||||
goto done;
|
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
|
GST_DEBUG_OBJECT (parse, "scanning for frame starting at %" G_GINT64_FORMAT
|
||||||
" (%#" G_GINT64_MODIFIER "x)", *pos, *pos);
|
" (%#" 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 */
|
/* jump elsewhere and locate next frame */
|
||||||
parse->priv->offset = *pos;
|
parse->priv->offset = *pos;
|
||||||
|
|
|
@ -264,8 +264,7 @@ GstBaseParseFrame * gst_base_parse_frame_new (GstBuffer * buffer,
|
||||||
GstBaseParseFrameFlags flags,
|
GstBaseParseFrameFlags flags,
|
||||||
gint overhead);
|
gint overhead);
|
||||||
|
|
||||||
void gst_base_parse_frame_init (GstBaseParse * parse,
|
void gst_base_parse_frame_init (GstBaseParseFrame * frame);
|
||||||
GstBaseParseFrame * frame);
|
|
||||||
|
|
||||||
GstFlowReturn gst_base_parse_push_frame (GstBaseParse * parse,
|
GstFlowReturn gst_base_parse_push_frame (GstBaseParse * parse,
|
||||||
GstBaseParseFrame * frame);
|
GstBaseParseFrame * frame);
|
||||||
|
|
Loading…
Reference in a new issue