summaryrefslogtreecommitdiffstats
path: root/tests/check/elements/rtp-payloading.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check/elements/rtp-payloading.c')
-rw-r--r--tests/check/elements/rtp-payloading.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/check/elements/rtp-payloading.c b/tests/check/elements/rtp-payloading.c
index 67060440..92fa875f 100644
--- a/tests/check/elements/rtp-payloading.c
+++ b/tests/check/elements/rtp-payloading.c
@@ -251,12 +251,14 @@ rtp_pipeline_run (rtp_pipeline * p)
for (i = 0; i < LOOP_COUNT; i++) {
const char *frame_data_pointer = p->frame_data;
+ int res;
int frame_count = p->frame_count;
/* Write in to the pipe. */
while (frame_count > 0) {
- write (p->fd[1], frame_data_pointer, p->frame_data_size);
+ res = write (p->fd[1], frame_data_pointer, p->frame_data_size);
+
frame_data_pointer += p->frame_data_size;
frame_count--;
}