added ability to write out xml copy of pipeline

Original commit message from CVS:
added ability to write out xml copy of pipeline
This commit is contained in:
Erik Walthinsen 2001-05-15 09:04:41 +00:00
parent a71e21678c
commit 06f9a6c052
2 changed files with 14 additions and 0 deletions

View file

@ -619,6 +619,18 @@ gst_play_media_seek (GstPlay *play,
gtk_object_set (GTK_OBJECT (priv->src), "offset", offset, NULL);
}
GstElement*
gst_play_get_pipeline(GstPlay *play)
{
GstPlayPrivate *priv;
g_return_val_if_fail (play != NULL, NULL);
g_return_val_if_fail (GST_IS_PLAY (play), NULL);
priv = (GstPlayPrivate *)play->priv;
return GST_ELEMENT (priv->bin);
}
static void
gst_play_set_arg (GtkObject *object,

View file

@ -24,6 +24,8 @@ main (int argc, char *argv[])
gst_media_play_start_uri (play, argv[1]);
}
xmlSaveFile("gstmediaplay.gst", gst_xml_write(gst_play_get_pipeline(play->play)));
gdk_threads_enter ();
gst_main ();
gdk_threads_leave ();