<div dir="ltr">This is now fixed: <a href="https://gstreamer.freedesktop.org/documentation/multifile/multifilesink.html?gi-language=python">https://gstreamer.freedesktop.org/documentation/multifile/multifilesink.html?gi-language=python</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 14, 2019 at 4:45 PM Mathieu Duponchelle <<a href="mailto:mathieu@centricular.com">mathieu@centricular.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    On 6/14/19 10:16 PM, pisymbol . wrote:<br>
    <blockquote type="cite">
      <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>
  </div>

_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>