Commit 06f9a6c0 authored by Erik Walthinsen's avatar Erik Walthinsen
Browse files

added ability to write out xml copy of pipeline

Original commit message from CVS:
added ability to write out xml copy of pipeline
parent a71e2167
......@@ -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,
......
......@@ -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 ();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment