Skip to content
Snippets Groups Projects
Commit d49fa595 authored by Wim Taymans's avatar Wim Taymans
Browse files

Commented out the Gtk widget stuff.

Original commit message from CVS:
Commented out the Gtk widget stuff.
parent beb2091b
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
static int launch_argc; static int launch_argc;
static char **launch_argv; static char **launch_argv;
GtkWidget *window; //GtkWidget *window;
GtkWidget *gtk_socket; //GtkWidget *gtk_socket;
typedef void (*found_handler) (GstElement *element, gint xid, void *priv); typedef void (*found_handler) (GstElement *element, gint xid, void *priv);
...@@ -22,6 +22,7 @@ arg_search (GstBin *bin, gchar *argname, found_handler handler, void *priv) ...@@ -22,6 +22,7 @@ arg_search (GstBin *bin, gchar *argname, found_handler handler, void *priv)
children = gst_bin_get_list(bin); children = gst_bin_get_list(bin);
#if 0
while (children) { while (children) {
GstElement *child; GstElement *child;
...@@ -50,6 +51,7 @@ arg_search (GstBin *bin, gchar *argname, found_handler handler, void *priv) ...@@ -50,6 +51,7 @@ arg_search (GstBin *bin, gchar *argname, found_handler handler, void *priv)
} }
} }
} }
#endif
g_free(ccargname); g_free(ccargname);
} }
...@@ -57,13 +59,14 @@ arg_search (GstBin *bin, gchar *argname, found_handler handler, void *priv) ...@@ -57,13 +59,14 @@ arg_search (GstBin *bin, gchar *argname, found_handler handler, void *priv)
void void
handle_have_size (GstElement *element,int width,int height) handle_have_size (GstElement *element,int width,int height)
{ {
gtk_widget_set_usize(gtk_socket,width,height); //gtk_widget_set_usize(gtk_socket,width,height);
gtk_widget_show_all(window); //gtk_widget_show_all(window);
} }
void void
xid_handler (GstElement *element, gint xid, void *priv) xid_handler (GstElement *element, gint xid, void *priv)
{ {
#if 0
window = gtk_window_new(GTK_WINDOW_TOPLEVEL); window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_socket = gtk_socket_new (); gtk_socket = gtk_socket_new ();
...@@ -79,6 +82,7 @@ xid_handler (GstElement *element, gint xid, void *priv) ...@@ -79,6 +82,7 @@ xid_handler (GstElement *element, gint xid, void *priv)
gtk_signal_connect (GTK_OBJECT (element), "have_size", gtk_signal_connect (GTK_OBJECT (element), "have_size",
GTK_SIGNAL_FUNC (handle_have_size), element); GTK_SIGNAL_FUNC (handle_have_size), element);
#endif
} }
gboolean gboolean
...@@ -135,8 +139,10 @@ main(int argc, char *argv[]) ...@@ -135,8 +139,10 @@ main(int argc, char *argv[])
fprintf(stderr,"RUNNING pipeline\n"); fprintf(stderr,"RUNNING pipeline\n");
gst_element_set_state (pipeline, GST_STATE_PLAYING); gst_element_set_state (pipeline, GST_STATE_PLAYING);
gtk_idle_add(idle_func,pipeline); //g_idle_add(idle_func,pipeline);
gtk_main(); // g_main_loop_run (g_main_loop_new (NULL, FALSE));
while (1)
gst_bin_iterate (GST_BIN (pipeline));
gst_element_set_state (pipeline, GST_STATE_NULL); gst_element_set_state (pipeline, GST_STATE_NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment