[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [patch #8734] Patches for improving `--audio-dump` suppor
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash |
Date: |
Mon, 07 Sep 2015 18:25:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 |
Follow-up Comment #2, patch #8734 (project gnash):
@@ -75,7 +76,19 @@ WAVWriter::WAVWriter(const std::string& wavefile)
/* public */
WAVWriter::~WAVWriter()
{
- if (file_stream) file_stream.close();
+ if (file_stream) {
+ // attempt to flush metadata
I think this comment should correspond to what is actually happening here,
i.e. something like:
// Seeking back to the beginning, in order to rewrite the
// header with information accumulated during writing.
+ file_stream.seekp(0);
+ if (file_stream.fail()) {
+ log_error("WAVWriter: Failed to flush audio dump metadata,
resulting file would be incomplete");
+ }
+ else {
+ write_wave_header(file_stream);
+ }
+
+ // close the stream
+ file_stream.close();
+ }
}
Aside from that, both patches look good to me.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8734>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash, Nutchanon Wetchasit, 2015/09/07
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash, Nutchanon Wetchasit, 2015/09/07
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash,
Bastiaan Jacques <=
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash, Sandro Santilli, 2015/09/07
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash, Sandro Santilli, 2015/09/07
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash, Sandro Santilli, 2015/09/07
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash, Bastiaan Jacques, 2015/09/08
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash, Nutchanon Wetchasit, 2015/09/09
- [Gnash-commit] [patch #8734] Patches for improving `--audio-dump` support in Gnash, Sandro Santilli, 2015/09/09