diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-02-21 20:11:29 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-02-21 20:15:20 -0500 |
commit | 544e5ef7af95dd8d70bbc122962a04a3f0c9f74a (patch) | |
tree | cb7907e8ce3869b917b36152199733a8787e6a25 /farstream/fs-transmitter.c | |
parent | f8b2fbc4dcfe495ca26acb33e875aea56f929dd4 (diff) | |
download | farstream-544e5ef7af95dd8d70bbc122962a04a3f0c9f74a.tar.gz |
Add "do-timestamp" property to the transmitters
Make it possible for the "raw" plugin to not have the transmitter
put timestamps on the buffers.
Diffstat (limited to 'farstream/fs-transmitter.c')
-rw-r--r-- | farstream/fs-transmitter.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/farstream/fs-transmitter.c b/farstream/fs-transmitter.c index 11c955c3..d0c52c18 100644 --- a/farstream/fs-transmitter.c +++ b/farstream/fs-transmitter.c @@ -62,7 +62,8 @@ enum PROP_GST_SINK, PROP_GST_SRC, PROP_COMPONENTS, - PROP_TYPE_OF_SERVICE + PROP_TYPE_OF_SERVICE, + PROP_DO_TIMESTAMP, }; /* @@ -166,6 +167,20 @@ fs_transmitter_class_init (FsTransmitterClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** + * FsTransmitter:do-timestamp: + * + * Apply current stream time to buffers or provide buffers without + * timestamps. Must be set before creating a stream transmitter. + */ + g_object_class_install_property (gobject_class, + PROP_DO_TIMESTAMP, + g_param_spec_boolean ("do-timestamp", + "Do Timestamp", + "Apply current stream time to buffers", + TRUE, + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + + /** * FsTransmitter::error: * @self: #FsTransmitter that emitted the signal * @errorno: The number of the error |