diff options
author | Julien Isorce <julien.isorce@gmail.com> | 2012-04-20 12:40:46 +0200 |
---|---|---|
committer | Julien Isorce <julien.isorce@gmail.com> | 2012-04-20 12:40:46 +0200 |
commit | 9aa8450d3e3f04cb14aead58f1c5d93691853561 (patch) | |
tree | 470a4f0482465cb19f421c03c71140b55c40b70a | |
parent | 421ad67fb2194cf66867e39b2fef8f6946717b8a (diff) |
cocoa example: do not set pipeline to null state twice
-rwxr-xr-x | tests/examples/cocoa/videoxoverlay/main.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/examples/cocoa/videoxoverlay/main.m b/tests/examples/cocoa/videoxoverlay/main.m index 396a6d4..fcb9083 100755 --- a/tests/examples/cocoa/videoxoverlay/main.m +++ b/tests/examples/cocoa/videoxoverlay/main.m @@ -103,6 +103,8 @@ static void end_stream_cb(GstBus* bus, GstMessage* message, MainWindow* window) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + g_print ("end of stream\n"); + gst_element_set_state ([window pipeline], GST_STATE_NULL); g_object_unref ([window pipeline]); g_main_loop_quit ([window loop]); @@ -226,8 +228,6 @@ int main(int argc, char **argv) [pool release]; - gst_element_set_state (pipeline, GST_STATE_NULL); - #ifdef GNUSTEP GSUnregisterCurrentThread(); #endif |