Skip to content

qtdemux: Specify REDIRECT information in error message

There are in the wild (mp4) streams that basically contain no tracks but do have a redirect info0, in which case, we won't be able to expose any pad (there are no tracks) so we can't post anything but an error on the bus, as:

  • it can't send EOS downstream, it has no pad,
  • posting an EOS message will be useless as PAUSED state can't be reached and there is no sink in the pipeline meaning GstBin will simply ignore it

The approach here is to to add details to the ERROR message with a redirect-location field which elements like playbin handle and use right away.

Also see gst-plugins-base!419 (merged)

Edited by Thibault Saunier

Merge request reports