[0.10] gst-plugins-gl: cocoa example: do not set pipeline to null state twice

Julien Isorce cap at kemper.freedesktop.org
Fri Apr 20 03:42:01 PDT 2012


Module: gst-plugins-gl
Branch: 0.10
Commit: 9aa8450d3e3f04cb14aead58f1c5d93691853561
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/commit/?id=9aa8450d3e3f04cb14aead58f1c5d93691853561

Author: Julien Isorce <julien.isorce at gmail.com>
Date:   Fri Apr 20 12:40:46 2012 +0200

cocoa example: do not set pipeline to null state twice

---

 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



More information about the gstreamer-commits mailing list