<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 6/14/19 10:16 PM, pisymbol . wrote:<br>
    <blockquote type="cite"
cite="mid:CAPpy_fHyc+hLCBQvPt3KznPH00HXmmMe4_SXauQZ2-692N-MVg@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_quote">
          <div>So the doc is flat out wrong. But after digging into
            source this worked for you Googlers:</div>
          <div><br>
          </div>
          <div>Register a message handler on your bus:</div>
          <div><br>
          </div>
          <div>     bus = pipeline.get_bus()<br>
                 bus.add_watch(GLib.PRIORITY_DEFAULT, on_message)</div>
          <div><br>
          </div>
          <div>Then in on_message do:</div>
          <div><br>
          </div>
          <div>  def on_message(bus, message):<br>
                    if message.type == Gst.MessageType.ELEMENT:<br>
                        if message.src.name.startswith("multifilesink"):<br>
                            msg_struct = message.get_structure()<br>
                            print(msg_struct.get_string('filename')) #
            Prints out the current capture file</div>
          <div><br>
          </div>
          <div>Need MOAR doc! :-)<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Note that ideally, we would standardize the documentation for custom
    messages<br>
    emitted by elements, but that needs doing :)<br>
  </body>
</html>