Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GStreamer_audioRecorder
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
m3
GStreamer_audioRecorder
Commits
6f71c5b6
Commit
6f71c5b6
authored
Oct 18, 2017
by
d.basulto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete a dummy bool variable
parent
e5502abe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
StreamRecorder.cpp
StreamRecorder.cpp
+1
-2
No files found.
StreamRecorder.cpp
View file @
6f71c5b6
...
...
@@ -319,7 +319,7 @@ int StreamRecorder::filter_handoff_callback(GstElement* filter, GstBuffer* buffe
printf
(
"Bytes to add: %ld
\n
"
,
bytesToAdd
);
// Adjust the bytes to add value to a buffer size divider
bytesToAdd
=
ceil
(
bytesToAdd
/
(
STREAMRECORDER_BYTESPERSAMPLE
*
READSIZE
))
*
STREAMRECORDER_BYTESPERSAMPLE
*
READSIZE
;
bytesToAdd
=
ceil
(
bytesToAdd
/
(
STREAMRECORDER_BYTESPERSAMPLE
*
READSIZE
))
*
STREAMRECORDER_BYTESPERSAMPLE
*
READSIZE
;
printf
(
"Adjusted to: %ld
\n
"
,
bytesToAdd
);
((
StreamRecorder
*
)
user_data
)
->
audioBufferPosition
=
((
StreamRecorder
*
)
user_data
)
->
audioBuffer
;
...
...
@@ -349,7 +349,6 @@ int StreamRecorder::addToBuffer(unsigned char* data, int length)
{
int
bytesRead
=
length
;
// READSIZE*STREAMRECORDER_BYTESPERSAMPLE;
bool
aux
=
false
;
bool
isNewAudioFile
;
/** Useful for obtain the filename*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment