encodebin: Add the parser before timestamper to tosync list

Also need to sync the state of the parser before timestamper with
parent.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6481>
This commit is contained in:
Hou Qi 2024-03-29 12:30:28 +09:00 committed by GStreamer Marge Bot
parent 41c52f5739
commit 1e70dea347

View file

@ -1633,6 +1633,7 @@ _create_stream_group (GstEncodeBaseBin * ebin, GstEncodingProfile * sprof,
(sgroup->parser)), NULL); (sgroup->parser)), NULL);
gst_bin_add (GST_BIN (ebin), p1); gst_bin_add (GST_BIN (ebin), p1);
tosync = g_list_append (tosync, p1);
if (G_UNLIKELY (!gst_element_link (p1, last))) if (G_UNLIKELY (!gst_element_link (p1, last)))
goto parser_link_failure; goto parser_link_failure;