title: How do I detect .connect_pad_added() template = video_%u?
body: <p>Using the gstreamer Rust bindings, how can I test if a sometimes pad that has been added is from template <code>video_%u</code> or <code>audio_%u</code>?</p>
  
  <p>For example, using qtdemuxm, the following pad added is called once for video and once for audio </p>
  
  <pre><code>.connect_pad_added(move |demux, src_pad| {
  </code></pre>
  
  <p>according to the binding docs it seems </p>
  
  <pre><code>get_property_name_template(&amp;self)
  </code></pre>
  
  <p>but this fails </p>
  
  <pre><code>.connect_pad_added(move |demux, src_pad| {
  let templateName = get_property_name_template(&amp;src_pad);
  |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
  </code></pre>
  
  <p>a more manual way is to get the name then if else, but is there a more direct method?</p>
  
  <pre><code>println!(
          "Received new pad {}",
          src_pad.get_name()
      );
  </code></pre>
  
  <p>I have also tried matching the pad form a template</p>
  
  <pre><code>.connect_pad_created('video_%u', src_pad{ ....
  </code></pre>
  
  <p>but I could not find a way to match the string of the template.</p>