mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
fdsink: remove unused struct member bytes_written
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/476>
This commit is contained in:
parent
710ce84d0c
commit
2812064734
2 changed files with 0 additions and 5 deletions
|
@ -170,7 +170,6 @@ gst_fd_sink_init (GstFdSink * fdsink)
|
||||||
{
|
{
|
||||||
fdsink->fd = 1;
|
fdsink->fd = 1;
|
||||||
fdsink->uri = g_strdup_printf ("fd://%d", fdsink->fd);
|
fdsink->uri = g_strdup_printf ("fd://%d", fdsink->fd);
|
||||||
fdsink->bytes_written = 0;
|
|
||||||
fdsink->current_pos = 0;
|
fdsink->current_pos = 0;
|
||||||
|
|
||||||
gst_base_sink_set_sync (GST_BASE_SINK (fdsink), FALSE);
|
gst_base_sink_set_sync (GST_BASE_SINK (fdsink), FALSE);
|
||||||
|
@ -262,7 +261,6 @@ gst_fd_sink_render_list (GstBaseSink * bsink, GstBufferList * buffer_list)
|
||||||
ret = gst_writev_buffer_list (GST_OBJECT_CAST (sink), sink->fd, sink->fdset,
|
ret = gst_writev_buffer_list (GST_OBJECT_CAST (sink), sink->fd, sink->fdset,
|
||||||
buffer_list, &bytes_written, skip, 0, -1, NULL);
|
buffer_list, &bytes_written, skip, 0, -1, NULL);
|
||||||
|
|
||||||
sink->bytes_written += bytes_written;
|
|
||||||
sink->current_pos += bytes_written;
|
sink->current_pos += bytes_written;
|
||||||
skip += bytes_written;
|
skip += bytes_written;
|
||||||
|
|
||||||
|
@ -298,7 +296,6 @@ gst_fd_sink_render (GstBaseSink * bsink, GstBuffer * buffer)
|
||||||
ret = gst_writev_buffer (GST_OBJECT_CAST (sink), sink->fd, sink->fdset,
|
ret = gst_writev_buffer (GST_OBJECT_CAST (sink), sink->fd, sink->fdset,
|
||||||
buffer, &bytes_written, skip, 0, -1, NULL);
|
buffer, &bytes_written, skip, 0, -1, NULL);
|
||||||
|
|
||||||
sink->bytes_written += bytes_written;
|
|
||||||
sink->current_pos += bytes_written;
|
sink->current_pos += bytes_written;
|
||||||
skip += bytes_written;
|
skip += bytes_written;
|
||||||
|
|
||||||
|
@ -374,7 +371,6 @@ gst_fd_sink_start (GstBaseSink * basesink)
|
||||||
gst_poll_add_fd (fdsink->fdset, &fd);
|
gst_poll_add_fd (fdsink->fdset, &fd);
|
||||||
gst_poll_fd_ctl_write (fdsink->fdset, &fd, TRUE);
|
gst_poll_fd_ctl_write (fdsink->fdset, &fd, TRUE);
|
||||||
|
|
||||||
fdsink->bytes_written = 0;
|
|
||||||
fdsink->current_pos = 0;
|
fdsink->current_pos = 0;
|
||||||
|
|
||||||
fdsink->seekable = gst_fd_sink_do_seek (fdsink, 0);
|
fdsink->seekable = gst_fd_sink_do_seek (fdsink, 0);
|
||||||
|
|
|
@ -58,7 +58,6 @@ struct _GstFdSink {
|
||||||
GstPoll *fdset;
|
GstPoll *fdset;
|
||||||
|
|
||||||
int fd;
|
int fd;
|
||||||
guint64 bytes_written;
|
|
||||||
guint64 current_pos;
|
guint64 current_pos;
|
||||||
|
|
||||||
gboolean seekable;
|
gboolean seekable;
|
||||||
|
|
Loading…
Reference in a new issue