mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
basesrc: use new _check_reconfigure() method
This commit is contained in:
parent
2d6a59aa83
commit
94ae04f098
1 changed files with 1 additions and 7 deletions
|
@ -2341,19 +2341,13 @@ gst_base_src_loop (GstPad * pad)
|
||||||
gboolean eos;
|
gboolean eos;
|
||||||
guint blocksize;
|
guint blocksize;
|
||||||
GList *pending_events = NULL, *tmp;
|
GList *pending_events = NULL, *tmp;
|
||||||
gboolean reconfigure;
|
|
||||||
|
|
||||||
eos = FALSE;
|
eos = FALSE;
|
||||||
|
|
||||||
src = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
|
src = GST_BASE_SRC (GST_OBJECT_PARENT (pad));
|
||||||
|
|
||||||
GST_OBJECT_LOCK (pad);
|
|
||||||
reconfigure = GST_PAD_NEEDS_RECONFIGURE (pad);
|
|
||||||
GST_OBJECT_FLAG_UNSET (pad, GST_PAD_NEED_RECONFIGURE);
|
|
||||||
GST_OBJECT_UNLOCK (pad);
|
|
||||||
|
|
||||||
/* check if we need to renegotiate */
|
/* check if we need to renegotiate */
|
||||||
if (reconfigure) {
|
if (gst_pad_check_reconfigure (pad)) {
|
||||||
if (!gst_base_src_negotiate (src))
|
if (!gst_base_src_negotiate (src))
|
||||||
GST_DEBUG_OBJECT (src, "Failed to renegotiate");
|
GST_DEBUG_OBJECT (src, "Failed to renegotiate");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue