2000-10-30 21:02:08 +00:00
|
|
|
/*
|
|
|
|
* Initial main.c file generated by Glade. Edit as required.
|
|
|
|
* Glade will not overwrite this file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
#include <gnome.h>
|
|
|
|
|
|
|
|
#include "gstmediaplay.h"
|
|
|
|
|
|
|
|
int
|
|
|
|
main (int argc, char *argv[])
|
|
|
|
{
|
|
|
|
GstMediaPlay *play;
|
|
|
|
|
2000-11-02 20:10:08 +00:00
|
|
|
gst_init (&argc,&argv);
|
2000-10-30 21:02:08 +00:00
|
|
|
gnome_init ("gstreamer", VERSION, argc, argv);
|
2000-11-08 19:53:48 +00:00
|
|
|
glade_init();
|
|
|
|
glade_gnome_init();
|
2000-10-30 21:02:08 +00:00
|
|
|
|
2000-11-02 20:10:08 +00:00
|
|
|
play = gst_media_play_new ();
|
2000-10-30 21:02:08 +00:00
|
|
|
|
|
|
|
if (argc > 1) {
|
2000-11-02 20:10:08 +00:00
|
|
|
gst_media_play_start_uri (play, argv[1]);
|
2000-10-30 21:02:08 +00:00
|
|
|
}
|
|
|
|
|
2001-05-15 09:04:41 +00:00
|
|
|
xmlSaveFile("gstmediaplay.gst", gst_xml_write(gst_play_get_pipeline(play->play)));
|
|
|
|
|
2000-11-02 20:10:08 +00:00
|
|
|
gdk_threads_enter ();
|
|
|
|
gst_main ();
|
|
|
|
gdk_threads_leave ();
|
2000-10-30 21:02:08 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|