[mythtv-users] Subtitle Support

Kenni Lund kenni at kelu.dk
Sat Apr 10 10:28:07 UTC 2010


2010/4/10 Error 401 <error401 at gmx.net>:
> test at testvm~/source/mythtv-0.22$ patch -p1
> < ../../t6748_matroska_hdmv_pgs_tag.diff
> can't find file to patch at input line 5
> Perhaps you used the wring -p or --strip option?
> The text leading up to this was:
> --------------------------
> |Index: libs/libavformat/matroska.c
> |============================================================
> |--- libs/libavformat/matroska.c         (revision 23069)
> |+++ libs/libavformat/matroska.c         (working copy)
> --------------------------

Seems like you're trying to apply the patch in the wrong directory. If
you use -p1, you ask it to strip out the first directory. Eg. it will
not look for
libs/libavformat/matroska.c
but
libavformat/matroska.c instead.

Browsing through the 0.22-fixes source, the file is placed in
release-0-22-fixes/mythtv/libs/libavformat/matroska.c

So in your case with -p1, you'll need to cd into mythtv/libs before
applying the patch. Or just cd into mythtv/ if you use -p0

Best Regards
Kenni


More information about the mythtv-users mailing list