Skip to content
  • Víctor Manuel Jáquez Leal's avatar
    v4l2: use GstV4l2Error in gst_v4l2_open() · 078560e7
    Víctor Manuel Jáquez Leal authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    gst_v4l2_open() is called by gst_v4l2_device_provider_probe_device(),
    where the GstV4l2Object is created without an associated GstElement.
    
    If gst_v4l2_open() fails, it raises a bus message, but without an
    element, a precondition check fails on
    gst_element_message_full_with_details() generating a crash if running
    with fatal-warnings debug mode.
    
    GstV4l2Error is a helper to raise error bus messages when it is
    appropiated. This patch changes the direct bus messages to this
    helper, and the elements will actually send the error message.
    
    Part-of: <!694>
    078560e7