diff options
author | jbrjake <[email protected]> | 2007-08-24 19:20:21 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2007-08-24 19:20:21 +0000 |
commit | 6f0f5935ee1dbbc2f16209a6b503c6609fb9d62e (patch) | |
tree | 34a44740ef2057af80be87ca3e5ea92b2dafd1fa /libhb | |
parent | 93aae9d8725ab184ddf2c6f90db4a14de73d5d9d (diff) |
Allows stream.c to try to read .VOB, .TS, and .mpeg files in addition to .vob, .ts, .m2t, and .mpg files. These are just more hard-coded file type extensions.
awk, if this is a Bad Idea for a reason I'm ignorant of, feel free to revert.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@861 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rwxr-xr-x | libhb/stream.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index 1e8e33647..ab8963c41 100755 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -83,8 +83,11 @@ int hb_stream_is_stream_type( char * path ) { if ((strstr(path,".mpg") != NULL) || (strstr(path,".vob") != NULL) || + (strstr(path, ".VOB") != NULL) || + (strstr(path, ".mpeg") != NULL) || (strstr(path,".ts") != NULL) || - (strstr(path, ".m2t") != NULL)) + (strstr(path, ".m2t") != NULL) || + (strstr(path, ".TS") != NULL)) { return 1; } @@ -112,12 +115,12 @@ hb_stream_t * hb_stream_open( char * path ) d->path = strdup( path ); - if ( ( strstr(d->path,".ts") != NULL) || ( strstr(d->path,".m2t") != NULL)) + if ( ( strstr(d->path,".ts") != NULL) || ( strstr(d->path,".m2t") != NULL) || ( strstr(d->path,".TS") != NULL) ) { d->stream_type = hb_stream_type_transport; hb_ts_stream_init(d); } - else if (( strstr(d->path,".mpg") != NULL) || ( strstr(d->path,".vob") != NULL)) + else if (( strstr(d->path,".mpg") != NULL) || ( strstr(d->path,".vob") != NULL) || ( strstr(d->path,".mpeg") != NULL) || ( strstr(d->path,".VOB") != NULL)) { d->stream_type = hb_stream_type_program; } |