summaryrefslogtreecommitdiff
path: root/gstplay/main.c
blob: 2ed5c7daf8238cfba92065ee147361e69a8fd84d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#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]);
		}
	}
	
#ifndef GST_DISABLE_LOADSAVE
	xmlSaveFile ("gstmediaplay.gst", gst_xml_write (gst_play_get_pipeline (play->play)));
#endif
	
	gdk_threads_enter();
	gst_main();
	gdk_threads_leave();
	
	return 0;
}