GstRtspServer.RTSPThread

Fields

Name

Type

Access

Description

context

GLib.MainContext

r/w

a GLib.MainContext

loop

GLib.MainLoop

r/w

a GLib.MainLoop

mini_object

Gst.MiniObject

r/w

parent Gst.MiniObject

type

GstRtspServer.RTSPThreadType

r/w

the thread type

Methods

class

new (type)

reuse ()

stop ()

Details

class GstRtspServer.RTSPThread

Structure holding info about a mainloop running in a thread

classmethod new(type)[source]
Parameters:

type (GstRtspServer.RTSPThreadType) – the thread type

Returns:

a GstRtspServer.RTSPThread.

Return type:

GstRtspServer.RTSPThread

Create a new thread object that can run a mainloop.

reuse()[source]
Returns:

True if the mainloop could be reused

Return type:

bool

Reuse the mainloop of self

stop()[source]

Stop and unref self. When no threads are using the mainloop, the thread will be stopped and the final ref to self will be released.