mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
docs: syntax in event handling example in chainfn.md
Signed-off-by: cadubentzen <cadubentzen@gmail.com> https://bugzilla.gnome.org/show_bug.cgi?id=788023
This commit is contained in:
parent
020bf14d03
commit
6fa607b01c
1 changed files with 45 additions and 43 deletions
|
@ -52,6 +52,7 @@ want to additionally specify an event handling function, which will be
|
||||||
called when stream-events are sent (such as caps, end-of-stream,
|
called when stream-events are sent (such as caps, end-of-stream,
|
||||||
newsegment, tags, etc.).
|
newsegment, tags, etc.).
|
||||||
|
|
||||||
|
```c
|
||||||
static void
|
static void
|
||||||
gst_my_filter_init (GstMyFilter * filter)
|
gst_my_filter_init (GstMyFilter * filter)
|
||||||
{
|
{
|
||||||
|
@ -103,6 +104,7 @@ newsegment, tags, etc.).
|
||||||
|
|
||||||
return gst_pad_push (filter->srcpad, outbuf);
|
return gst_pad_push (filter->srcpad, outbuf);
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
In some cases, it might be useful for an element to have control over
|
In some cases, it might be useful for an element to have control over
|
||||||
the input data rate, too. In that case, you probably want to write a
|
the input data rate, too. In that case, you probably want to write a
|
||||||
|
|
Loading…
Reference in a new issue