gstreamer/gstplay/main.c
Wim Taymans dbe262dfbb Make sure the Gdk thread lock is not held inside the gstreamer pipeline.
Original commit message from CVS:
Make sure the Gdk thread lock is not held inside the gstreamer pipeline.
Fix the videosink to not hold the Gdk lock when emitting a signal.
All Gtk GUI apps using GStreamer should now handle the Gdk locks when
handling signals from the pipeline (as it should be)
2000-11-02 20:10:08 +00:00

31 lines
491 B
C

/*
* 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;
gst_init (&argc,&argv);
gnome_init ("gstreamer", VERSION, argc, argv);
play = gst_media_play_new ();
if (argc > 1) {
gst_media_play_start_uri (play, argv[1]);
}
gdk_threads_enter ();
gst_main ();
gdk_threads_leave ();
return 0;
}