#include #include #ifdef USE_GLIB2 #include #include #endif #include "gstmediaplay.h" int main (int argc, char *argv[]) { GstMediaPlay *play; gst_init (&argc,&argv); #ifdef USE_GLIB2 gnome_program_init ("gstmediaplay", "0.3", LIBGNOMEUI_MODULE, argc, argv, NULL); #else gnome_init ("gstreamer", VERSION, argc, argv); glade_init(); glade_gnome_init(); #endif 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;iplay))); #endif gdk_threads_enter(); gst_main(); gdk_threads_leave(); return 0; }