Pipeline control is lost when used with gtksink & rtpsrc .
I am trying to build a front end for my application using gtkplugin. What i would like to do is set the states of the pipeline based on the buttons that i press, but instead of this, the pipeline is stuck in play state. Moreover, if you see in my code, i have a set state to play in the bottom of my main, which makes the whole program unresponsive if i comment it.
I did the same thing with success using filesrc but i fail with rtpsrc. What seems to be wrong? Am i missing something or is it a bug?
I have attached my code and how on the first 3 commented lines is how i compile my program.
//window that contains an area where the video is drawn
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 640, 480);
gtk_window_move (GTK_WINDOW (window), 300, 10);
gtk_window_set_title (GTK_WINDOW (window), "gtkgstwidget");
//window to control the states
window_control = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_resizable (GTK_WINDOW (window_control), FALSE);
gtk_window_move (GTK_WINDOW (window_control), 10, 10);
grid = gtk_grid_new ();
gtk_container_add (GTK_CONTAINER (window_control), grid);