git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30499 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-02-03 22:33:35 +00:00
parent 8613396aa0
commit 9d9b7a1e22
2 changed files with 5 additions and 5 deletions

View File

@ -464,7 +464,7 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){
if (!strncmp(demuxer->stream->url, "ffmpeg://rtsp:", 14))
strncpy(mp_filename, demuxer->stream->url + 9, sizeof(mp_filename)-3);
else
strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3);
strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3);
} else
strncpy(mp_filename + 3, "foobar.dummy", sizeof(mp_filename)-3);

View File

@ -113,10 +113,10 @@ static int open_f(stream_t *stream, int mode, void *opts, int *file_format)
stream->seek = NULL;
}
if (!dummy) {
stream->fill_buffer = fill_buffer;
stream->write_buffer = write_buffer;
stream->control = control;
stream->close = close_f;
stream->fill_buffer = fill_buffer;
stream->write_buffer = write_buffer;
stream->control = control;
stream->close = close_f;
}
res = STREAM_OK;