gstreamer/gstplay/main.c
Arik Devens 80fdb9475e Hmm, added working (if hacked) full-screen play, shuffled things around, added error checking so we don't crash on fi...
Original commit message from CVS:
Hmm, added working (if hacked) full-screen play, shuffled things around, added error checking so we don't crash on file not found, added the beginnings of a preferences dialog.
2001-06-13 01:18:12 +00:00

28 lines
494 B
C

#include <config.h>
#include <gnome.h>
#include "gstmediaplay.h"
int
main (int argc, char *argv[])
{
GstMediaPlay *play;
gst_init (&argc,&argv);
gnome_init ("gstreamer", VERSION, argc, argv);
glade_init();
glade_gnome_init();
play = gst_media_play_new ();
if (argc > 1) {
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();
return 0;
}