SOLVED: ges_pipeline_set_mode error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SOLVED: ges_pipeline_set_mode error

killerrats
Administrator
This post was updated on .
I just updated the gstreamer from 1.14. when I was using the gstreamer
editing service it gives an error  when setting the mode for the GES. this
is in c++.GES:ERROR:../ges/ges-pipeline.c:1144:ges_pipeline_set_mode:
assertion failed: (pipeline->priv->valid_thread == g_thread_self())I use
this to set the mode of rendering or preview.HANDLE handle =
reinterpret_cast(_beginthreadex(0, 0,&VideoPipeline::ThePreviewModeThread,
pipe->pPipeline, 0, 0));CloseHandle(handle);




-----
------------------------------
Gstreamer 1.16.2
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2
------------------------------
Windows
Reply | Threaded
Open this post in threaded view
|

Re: ges_pipeline_set_mode error

Thibault Saunier-4
Hi,

GES is not MT safe and all its API should be used from the main thread, so the thread where `ges_init` was called.

Regards,

Thibault Saunier

On Mon, Jul 27, 2020 at 5:27 PM killerrats <[hidden email]> wrote:
I just updated the gstreamer from 1.14. when I was using the gstreamer editing service it gives an error  when setting the mode for the GES. this is in c++.

GES:ERROR:../ges/ges-pipeline.c:1144:ges_pipeline_set_mode: assertion failed: (pipeline->priv->valid_thread == g_thread_self())

I use this to set the mode of rendering or preview.
HANDLE handle = reinterpret_cast(_beginthreadex(0, 0,&VideoPipeline::ThePreviewModeThread, pipe->pPipeline, 0, 0));
CloseHandle(handle);

------------------------------
Gstreamer 1.16.2
------------------------------
Windows


Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: ges_pipeline_set_mode error

killerrats
Administrator
thanks!

I stuck a while loop in the main area and signaled the process with a bool
so it can set either preview or render mode.



-----
------------------------------
Gstreamer 1.16.2
------------------------------
Windows
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2
------------------------------
Windows