python version of `g_signal_emit_valist ()`
Thibault Saunier
tsaunier at gnome.org
Wed Sep 30 22:29:16 UTC 2020
Hi,
You should be able to simply do:
``` python
splitmux = Gst.ElementFactory.make("splitmuxsink")
....
splitmux.emit("split-now")
```
The documentation[0] is broken for action signals and I opened a bug about
that[1].
Regards
- Thibault
[0]
https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsink.html?gi-language=python#splitmuxsink::split-now
[1] https://github.com/hotdoc/hotdoc/issues/211
On Tue, Sep 29, 2020 at 8:45 PM wzhouuuu <wei.zhou1001 at gmail.com> wrote:
> Hi all,
>
> I'm using splitmuxsink to save chunk of videos. I'd like to use its signal
> `split-now`. However, how should I send that signal using Python? I saw
> there's a C++ implementation, but i can't find any python implementation.
> signals[SIGNAL_SPLIT_NOW] =
> g_signal_new ("split-now", G_TYPE_FROM_CLASS (klass),
> G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
> G_STRUCT_OFFSET (GstSplitMuxSinkClass, split_now), NULL, NULL, NULL,
> G_TYPE_NONE, 0);
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
--
Thibault Saunier, Igalia - www.igalia.com <http://www.centricular.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200930/2f481507/attachment.htm>
More information about the gstreamer-devel
mailing list