summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:26:13 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:34:35 +0300
commit0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch)
tree71cb9bd9ed121156d3382066c0722c73189afe04 /stream/stream_dvd.c
parent6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff)
downloadmpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2
mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz
Remove trailing whitespace from most files
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 238ccf0e67..09429cbf08 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -292,7 +292,7 @@ int dvd_sid_from_lang(stream_t *stream, unsigned char* lang) {
return d->subtitles[i].id;
}
}
- lang+=2;
+ lang+=2;
while (lang[0]==',' || lang[0]==' ') ++lang;
}
mp_tmsg(MSGT_OPEN,MSGL_WARN,"No matching DVD subtitle language found!\n");
@@ -313,11 +313,11 @@ static int dvd_next_cell(dvd_priv_t *d) {
mp_msg(MSGT_DVD,MSGL_DBG2, "dvd_next_cell: next2=0x%X \n",next_cell);
++next_cell;
- if(next_cell>=d->last_cell)
+ if(next_cell>=d->last_cell)
return -1; // EOF
if(d->cur_pgc->cell_playback[next_cell].block_type == BLOCK_TYPE_ANGLE_BLOCK ) {
next_cell+=dvd_angle;
- if(next_cell>=d->last_cell)
+ if(next_cell>=d->last_cell)
return -1; // EOF
}
mp_msg(MSGT_DVD,MSGL_DBG2, "dvd_next_cell: next3=0x%X \n",next_cell);
@@ -354,12 +354,12 @@ read_next:
int next=dvd_next_cell(d);
if(next>=0) {
d->cur_cell=next;
- // if( d->cur_pgc->cell_playback[d->cur_cell].block_type
+ // if( d->cur_pgc->cell_playback[d->cur_cell].block_type
// == BLOCK_TYPE_ANGLE_BLOCK ) d->cur_cell+=dvd_angle;
d->cur_pack = d->cur_pgc->cell_playback[ d->cur_cell ].first_sector;
d->cell_last_pack=d->cur_pgc->cell_playback[ d->cur_cell ].last_sector;
mp_msg(MSGT_DVD,MSGL_V, "DVD next cell: %d pack: 0x%X-0x%X \n",d->cur_cell,d->cur_pack,d->cell_last_pack);
- } else
+ } else
return -1; // EOF
}
@@ -702,10 +702,10 @@ static int dvd_seek_to_time(stream_t *stream, ifo_handle_t *vts_file, double sec
return 1;
}
-static int control(stream_t *stream,int cmd,void* arg)
+static int control(stream_t *stream,int cmd,void* arg)
{
dvd_priv_t *d = stream->priv;
- switch(cmd)
+ switch(cmd)
{
case STREAM_CTRL_GET_TIME_LENGTH:
{
@@ -715,7 +715,7 @@ static int control(stream_t *stream,int cmd,void* arg)
case STREAM_CTRL_GET_NUM_CHAPTERS:
{
if(! d->cur_pgc->nr_of_programs) return STREAM_UNSUPPORTED;
- *((unsigned int *)arg) = d->cur_pgc->nr_of_programs;
+ *((unsigned int *)arg) = d->cur_pgc->nr_of_programs;
return 1;
}
case STREAM_CTRL_SEEK_TO_CHAPTER:
@@ -1051,7 +1051,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
d->angle_seek=0;
d->last_cell=d->cur_pgc->nr_of_cells;
- if(d->cur_pgc->cell_playback[d->cur_cell].block_type == BLOCK_TYPE_ANGLE_BLOCK )
+ if(d->cur_pgc->cell_playback[d->cur_cell].block_type == BLOCK_TYPE_ANGLE_BLOCK )
d->cur_cell+=dvd_angle;
d->cur_pack = d->cur_pgc->cell_playback[ d->cur_cell ].first_sector;
d->cell_last_pack=d->cur_pgc->cell_playback[ d->cur_cell ].last_sector;