klass->render = [..];
[..]
}
-
+
```
The advantages of deriving from `GstBaseSink` are numerous:
- Derived implementations barely need to be aware of preroll, and do
not need to know anything about the technical implementation
requirements of preroll. The base-class does all the hard work.
-
+
Less code to write in the derived class, shared code (and thus
shared bugfixes).
## Writing a source
In the previous part, particularly [Providing random
-access](pwg-scheduling.md#providing-random-access), we have learned
+access](pwg/advanced/scheduling.md#providing-random-access), we have learned
that some types of elements can provide random access. This applies most
definitely to source elements reading from a randomly seekable location,
such as file sources. However, other source elements may be better
it may not apply well to elements such as decoders, which may have to
parse properties from the stream. Also, it will not work for elements
requiring more than one sourcepad or sinkpad.
-