aboutsummaryrefslogtreecommitdiffstats
path: root/src/dabOutput/dabOutputFile.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-09 15:30:15 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-09 15:30:15 +0100
commit44732939bca8ba767d6ce5ea45085cf421d76595 (patch)
treea4fbcaae3c5fa67f906d9ee3c0d883ce86e9ba94 /src/dabOutput/dabOutputFile.cpp
parentc85c9cc40d05c89b3fa6de997590ab488c13cb2e (diff)
downloaddabmux-44732939bca8ba767d6ce5ea45085cf421d76595.tar.gz
dabmux-44732939bca8ba767d6ce5ea45085cf421d76595.tar.bz2
dabmux-44732939bca8ba767d6ce5ea45085cf421d76595.zip
Fix spelling of writting, remove old dabOutput.cpp
Diffstat (limited to 'src/dabOutput/dabOutputFile.cpp')
-rw-r--r--src/dabOutput/dabOutputFile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dabOutput/dabOutputFile.cpp b/src/dabOutput/dabOutputFile.cpp
index b8e9e70..d798daa 100644
--- a/src/dabOutput/dabOutputFile.cpp
+++ b/src/dabOutput/dabOutputFile.cpp
@@ -50,11 +50,11 @@ int DabOutputFile::Write(void* buffer, int size)
switch (this->type_) {
case ETI_FILE_TYPE_FRAMED:
- // Writting nb of frames at beginning of file
+ // Writing nb of frames at beginning of file
if (lseek(this->file_, 0, SEEK_SET) == -1) goto FILE_WRITE_ERROR;
if (write(this->file_, &this->nbFrames_, 4) == -1) goto FILE_WRITE_ERROR;
- // Writting nb frame length at end of file
+ // Writing nb frame length at end of file
if (lseek(this->file_, 0, SEEK_END) == -1) goto FILE_WRITE_ERROR;
if (write(this->file_, &frame_size, 2) == -1) goto FILE_WRITE_ERROR;
@@ -62,7 +62,7 @@ int DabOutputFile::Write(void* buffer, int size)
if (write(this->file_, buffer, size) == -1) goto FILE_WRITE_ERROR;
break;
case ETI_FILE_TYPE_STREAMED:
- // Writting nb frame length at end of file
+ // Writing nb frame length at end of file
if (write(this->file_, &frame_size, 2) == -1) goto FILE_WRITE_ERROR;
// Appending data
@@ -85,7 +85,7 @@ int DabOutputFile::Write(void* buffer, int size)
return size;
FILE_WRITE_ERROR:
- perror("Error while writting to file");
+ perror("Error while writing to file");
return -1;
}