gstreamer/gstplay/main.c
Arik Devens 4361a3c166 Added a bunch of new stuff including better fullscreen handling and some new playlist stuff that's not hooked up yet.
Original commit message from CVS:
Added a bunch of new stuff including better fullscreen handling and some new playlist stuff that's not hooked up yet.
2001-08-15 22:32:30 +00:00

35 lines
625 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) {
int i;
//gst_media_play_show_playlist (play);
gst_media_play_start_uri (play, argv[1]);
for (i=1;i<argc;i++) {
gst_media_play_addto_playlist (play, argv[i]);
}
}
xmlSaveFile ("gstmediaplay.gst", gst_xml_write (gst_play_get_pipeline (play->play)));
gdk_threads_enter();
gst_main();
gdk_threads_leave();
return 0;
}