summaryrefslogtreecommitdiffstats
path: root/bstr.c
Commit message (Collapse)AuthorAgeFilesLines
* input: fix input.conf parse errorsUoti Urpala2011-07-201-1/+7
| | | | | | | | | Commit df899f59be removing a write outside a buffer triggered another problem, as for some reason the code did not 0-terminate its read buffer in the specific case that it had encountered an EOF, and as a result could parse contents left in the buffer for a second time. Usually this resulted in parsing error messages. Fix the problem by rewriting the offending code in a less hacky form.
* cleanup: find_subfiles.c: simplify (mainly using bstr)Uoti Urpala2011-04-201-0/+15
|
* subs: move vobsub loading logic down to find_subfiles.cUoti Urpala2011-04-201-0/+8
| | | | | | | Analogously to the previous commit, move path handling logic for loading external vobsub files from mplayer.c to find_subfiles.c. Based on a commit from Clément Bœsch but fixed and simplified.
* bstr.[ch], path.[ch]: add string and path handling functionsUoti Urpala2011-02-261-0/+91
| | | | | | | Add some new string and path handling functions to be used in following commits. Use new path handling functions to simplify find_files().
* bstr.[ch]: add new files for struct bstr related functionalityUoti Urpala2010-05-201-0/+51
Move "struct bstr" definition from ebml.h to its own header and add some utility functions/macros. Change length field type from int to size_t and adjust using code accordingly. Partially based on a patch from Anton Khirnov.