mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 11:02:10 +00:00
52c3eb6976
This removes the dependency on DEMUXER_TYPE_* and the file_format parameter from the stream open functions. Remove some of the playlist handling code. It looks like this was needed only for loading linked mov files with demux_mov (which was removed long ago). Delete a minor bit of dead network-related code from stream.c as well.
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* This file is part of MPlayer.
|
|
*
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "stream.h"
|
|
|
|
static int open_s(stream_t *stream,int mode, void* opts)
|
|
{
|
|
stream->type = STREAMTYPE_DUMMY;
|
|
|
|
return 1;
|
|
}
|
|
|
|
|
|
const stream_info_t stream_info_null = {
|
|
"Null stream",
|
|
"null",
|
|
"Albeu",
|
|
"",
|
|
open_s,
|
|
{ "null", NULL },
|
|
NULL,
|
|
0 // Urls are an option string
|
|
};
|