From 281206473489d8e8fb2d78b4da007b13d723578d Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 12 May 2020 00:57:36 +0200 Subject: [PATCH] fdsink: remove unused struct member `bytes_written` Part-of: --- plugins/elements/gstfdsink.c | 4 ---- plugins/elements/gstfdsink.h | 1 - 2 files changed, 5 deletions(-) diff --git a/plugins/elements/gstfdsink.c b/plugins/elements/gstfdsink.c index f715ac13f0..122a6a6de9 100644 --- a/plugins/elements/gstfdsink.c +++ b/plugins/elements/gstfdsink.c @@ -170,7 +170,6 @@ gst_fd_sink_init (GstFdSink * fdsink) { fdsink->fd = 1; fdsink->uri = g_strdup_printf ("fd://%d", fdsink->fd); - fdsink->bytes_written = 0; fdsink->current_pos = 0; 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, buffer_list, &bytes_written, skip, 0, -1, NULL); - sink->bytes_written += bytes_written; sink->current_pos += 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, buffer, &bytes_written, skip, 0, -1, NULL); - sink->bytes_written += bytes_written; sink->current_pos += bytes_written; skip += bytes_written; @@ -374,7 +371,6 @@ gst_fd_sink_start (GstBaseSink * basesink) gst_poll_add_fd (fdsink->fdset, &fd); gst_poll_fd_ctl_write (fdsink->fdset, &fd, TRUE); - fdsink->bytes_written = 0; fdsink->current_pos = 0; fdsink->seekable = gst_fd_sink_do_seek (fdsink, 0); diff --git a/plugins/elements/gstfdsink.h b/plugins/elements/gstfdsink.h index c038ce07b1..e0ab0066ee 100644 --- a/plugins/elements/gstfdsink.h +++ b/plugins/elements/gstfdsink.h @@ -58,7 +58,6 @@ struct _GstFdSink { GstPoll *fdset; int fd; - guint64 bytes_written; guint64 current_pos; gboolean seekable;