mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
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:
parent
a71e21678c
commit
06f9a6c052
2 changed files with 14 additions and 0 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue