mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
ok, this works now
Original commit message from CVS: ok, this works now
This commit is contained in:
parent
8d262037b9
commit
434d40d4c5
1 changed files with 2 additions and 0 deletions
|
@ -61,12 +61,14 @@ int main (int argc, char *argv[])
|
|||
|
||||
/* disconnect and reconnect fakesink */
|
||||
|
||||
gst_element_set_state (main_bin, GST_STATE_PAUSED);
|
||||
g_print ("disconnecting...\n");
|
||||
gst_pad_disconnect (gst_element_get_pad (fakesrc, "src"),
|
||||
gst_element_get_pad (fakesink, "sink"));
|
||||
g_print ("reconnecting...\n");
|
||||
gst_pad_connect (gst_element_get_pad (fakesrc, "src"),
|
||||
gst_element_get_pad (fakesink, "sink"));
|
||||
gst_element_set_state (main_bin, GST_STATE_PLAYING);
|
||||
|
||||
for (i = 0; i < 5; ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue