diff options
| author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-01-19 01:05:24 +0000 |
|---|---|---|
| committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-01-19 01:05:24 +0000 |
| commit | 17d470f75b57265107c7f164334dbc53489124cc (patch) | |
| tree | 77d142fd47f8b7362bba275aaa63f3f8c0c1a488 /src/libsputext/demux_sputext.c | |
| parent | 700b5abb9bfad24a141241bc2c0c2e19b4722318 (diff) | |
| download | xine-lib-17d470f75b57265107c7f164334dbc53489124cc.tar.gz xine-lib-17d470f75b57265107c7f164334dbc53489124cc.tar.bz2 | |
Make get_mrl return a const char * too.
CVS patchset: 8524
CVS date: 2007/01/19 01:05:24
Diffstat (limited to 'src/libsputext/demux_sputext.c')
| -rw-r--r-- | src/libsputext/demux_sputext.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libsputext/demux_sputext.c b/src/libsputext/demux_sputext.c index 33d446458..c17dde6c8 100644 --- a/src/libsputext/demux_sputext.c +++ b/src/libsputext/demux_sputext.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_sputext.c,v 1.52 2007/01/19 00:26:41 dgp85 Exp $ + * $Id: demux_sputext.c,v 1.53 2007/01/19 01:05:25 dgp85 Exp $ * * code based on old libsputext/xine_decoder.c * @@ -1404,10 +1404,8 @@ static demux_plugin_t *open_demux_plugin (demux_class_t *class_gen, xine_stream_ switch (stream->content_detection_method) { case METHOD_BY_EXTENSION: { - char *mrl, *ending; - - mrl = input->get_mrl(input); - ending = strrchr(mrl, '.'); + const char *const mrl = input->get_mrl(input); + const char *const ending = strrchr(mrl, '.'); if (!ending || ( (strncasecmp(ending, ".asc", 4) != 0) && |
