Pad activation failure related to typefind and ghost pads
Forwarded from https://gitlab.gnome.org/GNOME/gtk/-/issues/4062
app.c reproduces the issue. Just start it with ./app /path/to/some/media/file
.
It fails with
(app:183943): GStreamer-CRITICAL **: 18:23:22.243: getrange on pad source:src but it was not activated in pull mode
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind: Internal data stream error.
Additional debug info:
../plugins/elements/gsttypefindelement.c(1232): gst_type_find_element_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind:
streaming stopped, reason error (-5)
(app:183943): GStreamer-CRITICAL **: 18:23:22.243: chain on pad decodebin0:sink but it was not in push mode
Just using a giostreamsrc
in front of decodebin
OTOH works fine (see commented out code).