From 115fd6c4703e136a35916ebbe8d8bf974982dd76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sat, 8 Feb 2014 02:30:00 +0000 Subject: [PATCH] [GB.MEDIA] * BUG: When a MediaPipeline is freed, the pipeline is first stopped before being put to the null state. Otherwise GStreamer freezes. git-svn-id: svn://localhost/gambas/trunk@6139 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.media/src/c_media.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gb.media/src/c_media.c b/gb.media/src/c_media.c index c1898966b..e28befea0 100644 --- a/gb.media/src/c_media.c +++ b/gb.media/src/c_media.c @@ -1267,6 +1267,7 @@ END_METHOD BEGIN_METHOD_VOID(MediaPipeline_free) + MEDIA_set_state(THIS, GST_STATE_READY, TRUE); GB.Unref(POINTER(&THIS->watch)); END_METHOD