Skip to content

Commit

Permalink
make test Makefile add sdp/files
Browse files Browse the repository at this point in the history
  • Loading branch information
ireader committed Aug 25, 2018
1 parent 2dc9e7e commit 21713d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions libdash/src/dash-mpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ size_t dash_mpd_playlist(struct dash_mpd_t* mpd, char* playlist, size_t bytes)
seg = list_entry(link, struct dash_segment_t, link);
n += snprintf(playlist + n, bytes - n, " <S t=\"%" PRId64 "\" d=\"%u\"/>\n", seg->timestamp, (unsigned int)seg->duration);
}
n += snprintf(playlist + n, bytes - n, s_footer);
n += snprintf(playlist + n, bytes - n, "%s", s_footer);
}
else if (MOV_OBJECT_HEVC == track->object)
{
Expand All @@ -535,7 +535,7 @@ size_t dash_mpd_playlist(struct dash_mpd_t* mpd, char* playlist, size_t bytes)
seg = list_entry(link, struct dash_segment_t, link);
n += snprintf(playlist + n, bytes - n, " <S t=\"%" PRId64 "\" d=\"%u\"/>\n", seg->timestamp, (unsigned int)seg->duration);
}
n += snprintf(playlist + n, bytes - n, s_footer);
n += snprintf(playlist + n, bytes - n, "%s", s_footer);
}
else if (MOV_OBJECT_AAC == track->object)
{
Expand All @@ -545,7 +545,7 @@ size_t dash_mpd_playlist(struct dash_mpd_t* mpd, char* playlist, size_t bytes)
seg = list_entry(link, struct dash_segment_t, link);
n += snprintf(playlist + n, bytes - n, " <S t=\"%" PRId64 "\" d=\"%u\"/>\n", seg->timestamp, (unsigned int)seg->duration);
}
n += snprintf(playlist + n, bytes - n, s_footer);
n += snprintf(playlist + n, bytes - n, "%s", s_footer);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion librtp/source/rtp-queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static void rtp_queue_dump(struct rtp_queue_t* q)
printf("[%02d/%02d]: ", q->pos, q->size);
for (i = 0; i < q->size; i++)
{
printf("%hu\t", q->items[(i + q->pos) % q->capacity].pkt->rtp.seq);
printf("%u\t", (unsigned int)q->items[(i + q->pos) % q->capacity].pkt->rtp.seq);
}
printf("\n");
}
Expand Down
3 changes: 2 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SOURCE_PATHS = . $(ROOT)/source/digest $(ROOT)/libhttp/test \
../libmpeg/test ../libhls/demo \
../libdash/test ../libmov/test \
../libflv/test ../librtmp/aio ../librtmp/test \
../librtp/test ../librtsp/source/server/aio ../librtsp/test ../librtsp/test/media
../librtp/test ../librtsp/source/server/aio ../librtsp/source/sdp ../librtsp/test ../librtsp/test/media
SOURCE_FILES = $(foreach dir,$(SOURCE_PATHS),$(wildcard $(dir)/*.cpp))
SOURCE_FILES += $(foreach dir,$(SOURCE_PATHS),$(wildcard $(dir)/*.c))
SOURCE_FILES += $(ROOT)/source/uri-parse.c
Expand All @@ -39,6 +39,7 @@ SOURCE_FILES += $(ROOT)/source/time64.c
SOURCE_FILES += $(ROOT)/source/base64.c
SOURCE_FILES += $(ROOT)/source/unicode.c
SOURCE_FILES += $(ROOT)/source/thread-pool.c
SOURCE_FILES += $(ROOT)/source/app-log.c

_SOURCE_FILES = $(ROOT)/libhttp/test/main.c
SOURCE_FILES := $(filter-out $(_SOURCE_FILES),$(SOURCE_FILES))
Expand Down

0 comments on commit 21713d2

Please sign in to comment.