mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
output-selector: Do not false warn about unlinked pad
When output-selector didn't receive a newsegment event it would warn about pad being unlinked when switching pads. Making the logs wrong and misleading.
This commit is contained in:
parent
ee7f9f4228
commit
71fe1ad070
1 changed files with 20 additions and 17 deletions
|
@ -453,7 +453,8 @@ gst_output_selector_switch (GstOutputSelector * osel)
|
|||
|
||||
/* Switch */
|
||||
GST_OBJECT_LOCK (GST_OBJECT (osel));
|
||||
GST_INFO ("switching to pad %" GST_PTR_FORMAT, osel->pending_srcpad);
|
||||
GST_INFO_OBJECT (osel, "switching to pad %" GST_PTR_FORMAT,
|
||||
osel->pending_srcpad);
|
||||
if (gst_pad_is_linked (osel->pending_srcpad)) {
|
||||
osel->active_srcpad = osel->pending_srcpad;
|
||||
res = TRUE;
|
||||
|
@ -464,7 +465,8 @@ gst_output_selector_switch (GstOutputSelector * osel)
|
|||
|
||||
/* Send NEWSEGMENT event and latest buffer if switching succeeded
|
||||
* and we already have a valid segment configured */
|
||||
if (res && osel->segment.format != GST_FORMAT_UNDEFINED) {
|
||||
if (res) {
|
||||
if (osel->segment.format != GST_FORMAT_UNDEFINED) {
|
||||
/* Send NEWSEGMENT to the pad we are going to switch to */
|
||||
seg = &osel->segment;
|
||||
|
||||
|
@ -482,6 +484,7 @@ gst_output_selector_switch (GstOutputSelector * osel)
|
|||
"newsegment handling failed in %" GST_PTR_FORMAT,
|
||||
osel->active_srcpad);
|
||||
}
|
||||
}
|
||||
|
||||
/* Resend latest buffer to newly switched pad */
|
||||
if (osel->resend_latest && osel->latest_buffer) {
|
||||
|
|
Loading…
Reference in a new issue