diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /stream/cdinfo.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'stream/cdinfo.c')
-rw-r--r-- | stream/cdinfo.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/stream/cdinfo.c b/stream/cdinfo.c index 48e970c72b..4da80c71a1 100644 --- a/stream/cdinfo.c +++ b/stream/cdinfo.c @@ -1,5 +1,5 @@ /* - * CD Info + * CD Info * by Bertrand Baudet <bertrand_baudet@yahoo.com> * (C) 2002, MPlayer team. */ @@ -22,15 +22,15 @@ cd_info_t* cd_info_new(void) { cd_info_t *cd_info = NULL; - + cd_info = malloc(sizeof(cd_info_t)); if( cd_info==NULL ) { mp_tmsg(MSGT_DEMUX, MSGL_ERR, "Memory allocation failed.\n"); return NULL; } - + memset(cd_info, 0, sizeof(cd_info_t)); - + return cd_info; } @@ -54,16 +54,16 @@ cd_info_free(cd_info_t *cd_info) { cd_track_t* cd_info_add_track(cd_info_t *cd_info, char *track_name, unsigned int track_nb, unsigned int min, unsigned int sec, unsigned int msec, unsigned long frame_begin, unsigned long frame_length) { cd_track_t *cd_track; - + if( cd_info==NULL || track_name==NULL ) return NULL; - + cd_track = malloc(sizeof(cd_track_t)); if( cd_track==NULL ) { mp_tmsg(MSGT_DEMUX, MSGL_ERR, "Memory allocation failed.\n"); return NULL; } memset(cd_track, 0, sizeof(cd_track_t)); - + cd_track->name = malloc(strlen(track_name)+1); if( cd_track->name==NULL ) { mp_tmsg(MSGT_DEMUX, MSGL_ERR, "Memory allocation failed.\n"); @@ -86,12 +86,12 @@ cd_info_add_track(cd_info_t *cd_info, char *track_name, unsigned int track_nb, u } cd_track->prev = cd_info->last; - + cd_info->last = cd_track; cd_info->current = cd_track; cd_info->nb_tracks++; - + return cd_track; } |