diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-04-01 19:55:26 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-04-02 06:51:26 +0300 |
commit | f12c83b85b135c1cb9fb34e978eb0c8051450da8 (patch) | |
tree | 793b653cd5bda953f13cf02b1b14c72d9c0c7713 /mencoder.c | |
parent | 997f636599a0a8eda56246b535aa9c920b24b67c (diff) | |
download | mpv-f12c83b85b135c1cb9fb34e978eb0c8051450da8.tar.bz2 mpv-f12c83b85b135c1cb9fb34e978eb0c8051450da8.tar.xz |
Change demuxer_seek_chapter() parameters
Remove the "num_chapters" and "mode" parameters that aren't needed by
any callers. Change "float *seek_pts" to "double *". Allocate the
string returned via "chapter_name" with talloc.
Diffstat (limited to 'mencoder.c')
-rw-r--r-- | mencoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mencoder.c b/mencoder.c index 6fb7f03600..6915a6efa3 100644 --- a/mencoder.c +++ b/mencoder.c @@ -575,8 +575,8 @@ if(stream->type==STREAMTYPE_DVDNAV){ } if(dvd_chapter>1) { - float pts; - if (demuxer_seek_chapter(demuxer, dvd_chapter-1, 1, &pts, NULL, NULL) >= 0 && pts > -1.0) + double pts; + if (demuxer_seek_chapter(demuxer, dvd_chapter-1, &pts, NULL) >= 0 && pts > -1.0) seek_to_sec = pts; } |