gstreamer/gstplay/main.c
Michael Meeks d04099240b gst/gst.c (gst_main, gst_main_quit): upd.
Original commit message from CVS:
2001-12-14  Michael Meeks  <michael@ximian.com>

* gst/gst.c (gst_main, gst_main_quit): upd.

* gst/gstutils.c (gst_util_has_arg): impl.
(gst_util_get_int64_arg): impl.

* plugins/mpeg2/video/gstmpeg2play.c
(gst_mpeg2play_class_init): min frames per sec = 0.

* plugins/mikmod/gstmikmod.c (gst_mikmod_class_init):
s/16bit/use16bit/ properties can't begin with a non
alpha.

* tools/gstreamer-guilaunch.c: fresh from the ministy
of nasty hacks.

* tools/Makefile.am: enable gstreamer-guilaunch for
Gnome 2.0

* tools/gstreamer-launch.c (main): upd.
(idle_func): quit the mainloop.
2001-12-14 18:11:52 +00:00

52 lines
932 B
C

#include <config.h>
#include <gnome.h>
#ifdef USE_GLIB2
#include <libgnomeui/libgnomeui.h>
#include <libgnomeui/gnome-ui-init.h>
#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; 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();
#ifdef USE_GLIB2
gtk_main ();
#else
gst_main();
#endif
gdk_threads_leave();
return 0;
}