[gstreamer-bugs] [Bug 456573] allow dumping pipelines as dot graphs

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Oct 3 04:29:04 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=456573

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #11 from Stefan Kost (gstreamer, gtkdoc dev)  2007-10-03 11:29 UTC -------
@tim, the placeholeder in the template should be actually %u:%02u:%02u.%09u aka
"/tmp/metadata.%" GST_TIME_FORMAT ".dot".

I have some code for checking the string, but basically I think its not
covering 100% of the cases and not worth the trouble. Are you fine with some
sanity check like this:

  gchar *file_name = NULL;
  const gchar *pos;
  GTimeVal now;
  GstClockTime elapsed;
  guint fmt_ct = 0;

  g_return_if_fail (GST_IS_BIN (bin));
  g_return_if_fail (file_tmpl != NULL);

  /* check file-name template */
  pos = strchr(file_tmpl, '%');
  if (pos) {
    do {
      pos++;
      if (*pos != '\0') {
        if (*pos != '%')
          fmt_ct++;
        pos++;
      }
      pos = strchr(pos, '%');
    } while(pos);
  }
  if (fmt_ct == 0) {
    GST_WARNING ("file template has no valid placeholder");
    return;
  }
  else if (fmt_ct !=4) {
    GST_WARNING ("file template must have 4 placeholders, but has %d", fmt_ct);
    return;
  }


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=456573.




More information about the Gstreamer-bugs mailing list