mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
add url syntax for playback
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4501 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -105,6 +105,8 @@ SWITCH_BEGIN_EXTERN_C
|
||||
#define SWITCH_PATH_SEPARATOR "/"
|
||||
#endif
|
||||
|
||||
#define SWITCH_URL_SEPARATOR "://"
|
||||
|
||||
#ifndef SWITCH_PREFIX_DIR
|
||||
#define SWITCH_PREFIX_DIR "."
|
||||
#endif
|
||||
|
||||
@@ -54,9 +54,9 @@ SWITCH_BEGIN_EXTERN_C
|
||||
codec->implementation->microseconds_per_frame / 1000)
|
||||
|
||||
#ifdef WIN32
|
||||
#define switch_is_file_path(file) (*(file +1) == ':' || *file == '/')
|
||||
#define switch_is_file_path(file) (*(file +1) == ':' || *file == '/' || strstr(file, SWITCH_URL_SEPARATOR))
|
||||
#else
|
||||
#define switch_is_file_path(file) (*file == '/')
|
||||
#define switch_is_file_path(file) ((*file == '/') || strstr(file, SWITCH_URL_SEPARATOR))
|
||||
#endif
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user