mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
vorbisenc: remove unused variables
This commit is contained in:
parent
ca1dac6982
commit
80fca3b4e3
2 changed files with 1 additions and 6 deletions
|
@ -563,7 +563,6 @@ gst_vorbis_enc_flush (GstAudioEncoder * enc)
|
||||||
GstVorbisEnc *vorbisenc = GST_VORBISENC (enc);
|
GstVorbisEnc *vorbisenc = GST_VORBISENC (enc);
|
||||||
|
|
||||||
gst_vorbis_enc_clear (vorbisenc);
|
gst_vorbis_enc_clear (vorbisenc);
|
||||||
vorbisenc->samples_in = 0;
|
|
||||||
vorbisenc->header_sent = FALSE;
|
vorbisenc->header_sent = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -577,7 +576,7 @@ gst_vorbis_enc_buffer_from_header_packet (GstVorbisEnc * vorbisenc,
|
||||||
gst_audio_encoder_allocate_output_buffer (GST_AUDIO_ENCODER (vorbisenc),
|
gst_audio_encoder_allocate_output_buffer (GST_AUDIO_ENCODER (vorbisenc),
|
||||||
packet->bytes);
|
packet->bytes);
|
||||||
gst_buffer_fill (outbuf, 0, packet->packet, packet->bytes);
|
gst_buffer_fill (outbuf, 0, packet->packet, packet->bytes);
|
||||||
GST_BUFFER_OFFSET (outbuf) = vorbisenc->bytes_out;
|
GST_BUFFER_OFFSET (outbuf) = 0;
|
||||||
GST_BUFFER_OFFSET_END (outbuf) = 0;
|
GST_BUFFER_OFFSET_END (outbuf) = 0;
|
||||||
GST_BUFFER_TIMESTAMP (outbuf) = GST_CLOCK_TIME_NONE;
|
GST_BUFFER_TIMESTAMP (outbuf) = GST_CLOCK_TIME_NONE;
|
||||||
GST_BUFFER_DURATION (outbuf) = GST_CLOCK_TIME_NONE;
|
GST_BUFFER_DURATION (outbuf) = GST_CLOCK_TIME_NONE;
|
||||||
|
@ -776,8 +775,6 @@ gst_vorbis_enc_handle_frame (GstAudioEncoder * enc, GstBuffer * buffer)
|
||||||
|
|
||||||
GST_LOG_OBJECT (vorbisenc, "wrote %lu samples to vorbis", size);
|
GST_LOG_OBJECT (vorbisenc, "wrote %lu samples to vorbis", size);
|
||||||
|
|
||||||
vorbisenc->samples_in += size;
|
|
||||||
|
|
||||||
ret = gst_vorbis_enc_output_buffers (vorbisenc);
|
ret = gst_vorbis_enc_output_buffers (vorbisenc);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -72,9 +72,7 @@ struct _GstVorbisEnc {
|
||||||
gint channels;
|
gint channels;
|
||||||
gint frequency;
|
gint frequency;
|
||||||
|
|
||||||
guint64 samples_in;
|
|
||||||
guint64 samples_out;
|
guint64 samples_out;
|
||||||
guint64 bytes_out;
|
|
||||||
|
|
||||||
GstTagList * tags;
|
GstTagList * tags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue