Skip to content

Commit

Permalink
make some janus_recorder_create() args const, remove duplicate condit…
Browse files Browse the repository at this point in the history
…ion in plugin loading
  • Loading branch information
ploxiln committed Nov 21, 2014
1 parent a3b5910 commit 22d4732
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion janus.c
Original file line number Diff line number Diff line change
Expand Up @@ -3857,7 +3857,6 @@ gint main(int argc, char *argv[])
!janus_plugin->get_description ||
!janus_plugin->get_package ||
!janus_plugin->get_name ||
!janus_plugin->get_name ||
!janus_plugin->create_session ||
!janus_plugin->handle_message ||
!janus_plugin->setup_media ||
Expand Down
2 changes: 1 addition & 1 deletion record.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
static const char *header = "MEETECHO";


janus_recorder *janus_recorder_create(char *dir, int video, char *filename) {
janus_recorder *janus_recorder_create(const char *dir, int video, const char *filename) {
janus_recorder *rc = calloc(1, sizeof(janus_recorder));
if(rc == NULL) {
JANUS_LOG(LOG_FATAL, "Memory error!\n");
Expand Down
2 changes: 1 addition & 1 deletion record.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ typedef struct janus_recorder {
* @param[in] video If this recorder is for video or audio
* @param[in] filename Filename to use for the recording
* @returns A valid janus_recorder instance in case of success, NULL otherwise */
janus_recorder *janus_recorder_create(char *dir, int video, char *filename);
janus_recorder *janus_recorder_create(const char *dir, int video, const char *filename);
/*! \brief Save an RTP frame in the recorder
* @param[in] recorder The janus_recorder instance to save the frame to
* @param[in] buffer The frame data to save
Expand Down

0 comments on commit 22d4732

Please sign in to comment.