mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 09:12:19 +00:00
dbe262dfbb
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)
31 lines
491 B
C
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;
|
|
}
|
|
|