Commit graph

6767 commits

Author SHA1 Message Date
Wim Taymans
f3053c963d source: send latency to client
Send the latency to the client and use this to configure the pinossrc
element latency correctly.
2016-04-28 11:18:10 +02:00
Wim Taymans
1c16fd5533 socketsink: track buffers with the fdmanager 2016-04-27 16:05:02 +02:00
Wim Taymans
45c5e4c47f burstcache: add error quark 2016-04-27 12:16:15 +02:00
Wim Taymans
c8f34750e2 pinossocketsink: add new socket sink
Add a new sink that replaces the pinospay ! multisocketsink element
pair. This would allow us to track the fds per client more closely.
2016-04-27 12:05:45 +02:00
Wim Taymans
d5e333ac4b add refresh message
Add a new refresh message to request a keyframe from the pinos server.
pinospay: pass the refresh-request message upstream
pinossink: turn refresh-request messages into events
pinossrc: turn a keyframe event into a refresh-request message
2016-04-13 13:04:32 +02:00
Wim Taymans
833168c3cf fdmanager: decrement object refcount correctly
The object needs to be decremented each time a client releases it.
2016-04-13 13:01:33 +02:00
Wim Taymans
a25bdf8acb pinossrc: use a queue for the buffers
Use a queue to keep the buffers around and pass them to the streaming
thread.
2016-04-12 17:05:51 +02:00
Wim Taymans
c6079cf7d2 gst-source: avoid some memory leaks 2016-04-12 11:58:33 +02:00
Wim Taymans
108a42c6b3 add more docs 2016-04-12 08:55:20 +02:00
Wim Taymans
45976ffeda update DBus object with current format
Detect a format change in the payloader and post an element message.
Catch the format change element message in the client-source and use it
to update the format and possible formats in the source and source-outputs.
2016-04-11 16:06:54 +02:00
Wim Taymans
44f2c3602d add more debug statements 2016-04-11 15:26:15 +02:00
Wim Taymans
d68d41b5b0 pinospay: ref payloader
Ref the payloader to make sure it does not disappear when releasing the
fds.
2016-04-11 15:24:41 +02:00
Wim Taymans
ae5d26e049 fdmanager: add global object manager
Add a global object that can be used to track outstanding fds for a
client. This can later also be used to limit the number of fds per
client.
Use this in the payloader to track fds. This makes it possible to track
the fds even when the client reconnects.
Set the client patch on the socket so that we can use it to track the
fds we sent to this client.
When the client disappears, release all outstanding fds.
2016-04-08 16:50:01 +02:00
Wim Taymans
29e664ee21 more leak fixes 2016-04-07 17:40:18 +02:00
Wim Taymans
6b19e7a2d8 fix various leaks 2016-04-07 17:28:46 +02:00
Wim Taymans
bc73610dd0 pinossrc: don't send empty buffers 2016-04-07 12:14:16 +02:00
Wim Taymans
4149e34e67 monitor: put marks on all properties 2016-04-07 11:51:05 +02:00
Wim Taymans
2af64edd29 pinossink: send format change messages
Rework stream connect/disconnect from start/stop
Start the stream in setcaps when the format is known.
When the stream is already started in setcaps, send a format_change
message instead.
2016-04-07 11:39:52 +02:00
Wim Taymans
4121c421aa pinossrc: handle format change messages 2016-04-07 11:39:33 +02:00
Wim Taymans
ccb93c9652 stream: handle against zero length payload
Don't send empty payloads in pinospay
2016-04-07 11:38:00 +02:00
Wim Taymans
2d392c7410 buffer: construct and parse format change messages 2016-04-07 11:37:21 +02:00
Wim Taymans
e408c5a9a5 buffer: fix header pointer after buffer realloc 2016-04-07 11:36:04 +02:00
Wim Taymans
50228dddf8 pinossink: stop and disconnect the old stream when renegotiating
When we get a new format, stop, disconnect and unref the old stream.
In the future we should try to send a format change on the existing stream.
2016-04-06 21:05:44 +02:00
Wim Taymans
563f2a2726 client: Fix unref of source and source-input
Make sure we unref the source-input when it is removed.
When the source-input is removed, we should also unref the source. Do
this by adding the source as data for the source-input and unreffing it
when the source-input is freed.
2016-04-06 21:03:00 +02:00
Wim Taymans
3ad403ab13 stream: don't g_free a GBytes 2016-04-06 21:02:08 +02:00
Wim Taymans
f67ddb7c7e stream: ref stream in _stop and _start 2016-04-06 21:01:29 +02:00
Ognyan Tonchev
00aed12909 pinospay: don't do logic in g_assert
We still want to code to execute when asserts are disabled.
2016-03-09 10:49:22 +01:00
Ognyan Tonchev
b3d07070f5 buffer: avoid alignment problems
Use memcpy do avoid alignment problems.
2016-03-09 10:48:32 +01:00
Wim Taymans
068032e1dd pinos-monitor: Improve output of removed objects
Don't print NULL properties or formats
Don't print property values for removed objects because they are all
invalid anyway.
2016-02-01 16:29:56 +01:00
Wim Taymans
cdb2028f9b src -> pinos and fix include paths
Rename src to pinos and fix all the include paths so that they contain
pinos/ to avoid conflicts
2016-02-01 15:40:48 +01:00
Wim Taymans
f4bd013dce pkgconfig: fix include dir 2016-01-13 10:37:53 +01:00
Wim Taymans
b0cfa86c18 pinos-monitor: improve output
Always print all properties but mark the changed properties with a *
2016-01-07 15:27:35 +01:00
Wim Taymans
050b8b0300 pinossrc: implement unlock/unlock_stop
Implement unlock and unlock_stop to unblock the create method.
2016-01-07 15:07:15 +01:00
Wim Taymans
531fd1beca introspect: fix docs 2016-01-07 13:08:58 +01:00
Wim Taymans
0a60cccf6d introspect: improve introspection API
Add GAsyncReadyCallback to the introspection API. This makes it possible
to report errors in the future. Don't pass NULL in the callback anymore
now that we have the Ready callback. We also don't need to have a return
value from the callback because now we can cancel any iteration by using
the GCancelable.
Make pinos_context_info_finish() to get the final result/error of
introspection.
Update tools for new API
2016-01-07 12:15:57 +01:00
Wim Taymans
0b7393affe gst: enable new properties on gst elements
Enable properties to handle release-fd messages
2015-12-10 13:00:54 +01:00
Jonas Ådahl
8a509ec2a4 pc: Include MAJORMINOR in the .pc filename 2015-12-10 10:12:05 +01:00
Wim Taymans
ae098db0bb gstpinos: detect tmpfile memory
Check if we got tmpfile memory and if we do, don't bother waiting for
the release-fd message but unref the memory directly. We know the memory
is allocated from our allocator and that we won't reuse it.
2015-12-10 10:00:30 +01:00
Jonas Ådahl
df171356fe pc: Include MAJORMINOR version in Ldflags
The .so file is libpinos-MAJOR.MINOR.so, so the .pc file should reflect
this.
2015-12-10 09:51:42 +01:00
Wim Taymans
1a9aaa3f11 pc: remove @PTHREAD_LIBS@ 2015-12-10 09:07:31 +01:00
Wim Taymans
8a7d5a7f80 gstpinos: add stream-properties
Add a property to set the stream properties in the source and sink
streams.
2015-12-09 13:27:43 +01:00
Wim Taymans
c3fce0103b stream: remember the source path 2015-12-09 11:23:14 +01:00
Wim Taymans
c875141e69 gst-source: handle state change errors better 2015-12-09 11:19:07 +01:00
Wim Taymans
7aa3032710 gstpinos: pass client_name to stream_new 2015-12-09 09:41:01 +01:00
Wim Taymans
16946dc81c buffer: fix g_return return values 2015-12-09 09:37:50 +01:00
Wim Taymans
9bdc9d757a docs: update design docs
Update design docs with some info about how the lifecycle of fds
are managed.
2015-12-04 16:39:29 +01:00
Wim Taymans
f82f6ce5e0 pinossink: suggest an allocator
Suggest and allocator upstream so that we might avoid doing a copy into
a tmpfile.
2015-12-04 16:38:20 +01:00
Wim Taymans
a25bf11c1c pinospay: error if downstream doesn't handle control-messages
We really need a downstream element that can handle the control-messages
or else we'll be losing the data.
2015-12-04 12:48:03 +01:00
Wim Taymans
f51307f8f8 pinospay: rename events
Rename the network message. We want the same event name for the
message we received and the one we send.
2015-12-04 12:46:36 +01:00
Wim Taymans
b6f10f508d pinossink: track the fd indices we sent
Track the fd indices we sent to Pinos and free the associated buffer
when Pinos sends us release-fd. Only do this for non tempfile fds, as we
made the tmpfile ones ourselves and we're not going to reuse them.
2015-12-03 15:59:27 +01:00