Skip to content

Instantly share code, notes, and snippets.

@rdp
Created November 11, 2011 17:52
Show Gist options
  • Save rdp/1358679 to your computer and use it in GitHub Desktop.
Save rdp/1358679 to your computer and use it in GitHub Desktop.
mplayer use new accurate dvdnav method for absolute seeking
Index: stream/stream_dvdnav.c
===================================================================
--- stream/stream_dvdnav.c (revision 34341)
+++ stream/stream_dvdnav.c (working copy)
@@ -465,7 +465,7 @@
case STREAM_CTRL_SEEK_TO_TIME:
{
uint64_t tm = *(double *)arg * 90000;
- if(dvdnav_time_search(priv->dvdnav, tm) == DVDNAV_STATUS_OK)
+ if(dvdnav_jump_to_sector_by_time(priv->dvdnav, tm) == DVDNAV_STATUS_OK)
return 1;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment