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-12-11 00:04:25 +00:00
|
|
|
gst_type_dump ();
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|