diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-15 14:00:35 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-15 14:00:35 +0000 |
commit | 443d766f9506dfcc19de9c8fc224a61a0922f722 (patch) | |
tree | adb40f0b8997f9d28de758cb3a3d82e4f3151189 /src/demuxers/demux_ts.c | |
parent | 570fd9006dcf6f9aaa460e79b93b7ce37f7c6d7b (diff) | |
download | xine-lib-443d766f9506dfcc19de9c8fc224a61a0922f722.tar.gz xine-lib-443d766f9506dfcc19de9c8fc224a61a0922f722.tar.bz2 |
change demux api:
- demuxers should not access stream->demux_thread_running
- remove deprecated get_video_frame/got_video_frame_cb
CVS patchset: 5732
CVS date: 2003/11/15 14:00:35
Diffstat (limited to 'src/demuxers/demux_ts.c')
-rw-r--r-- | src/demuxers/demux_ts.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c index 32684664a..28f138801 100644 --- a/src/demuxers/demux_ts.c +++ b/src/demuxers/demux_ts.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_ts.c,v 1.93 2003/11/11 18:44:53 f1rmb Exp $ + * $Id: demux_ts.c,v 1.94 2003/11/15 14:01:03 miguelfreitas Exp $ * * Demultiplexer for MPEG2 Transport Streams. * @@ -1779,7 +1779,7 @@ static void demux_ts_send_headers (demux_plugin_t *this_gen) { } static int demux_ts_seek (demux_plugin_t *this_gen, - off_t start_pos, int start_time) { + off_t start_pos, int start_time, int playing) { demux_ts_t *this = (demux_ts_t *) this_gen; int i; @@ -1809,7 +1809,7 @@ static int demux_ts_seek (demux_plugin_t *this_gen, m->buffered_bytes = 0; } - if( !this->stream->demux_thread_running ) { + if( !playing ) { this->status = DEMUX_OK; this->buf_flag_seek = 0; @@ -1982,8 +1982,6 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, this->demux_plugin.dispose = demux_ts_dispose; this->demux_plugin.get_status = demux_ts_get_status; this->demux_plugin.get_stream_length = demux_ts_get_stream_length; - this->demux_plugin.get_video_frame = demux_ts_get_video_frame; - this->demux_plugin.got_video_frame_cb= NULL; this->demux_plugin.get_capabilities = demux_ts_get_capabilities; this->demux_plugin.get_optional_data = demux_ts_get_optional_data; this->demux_plugin.demux_class = class_gen; @@ -2082,6 +2080,6 @@ static void *init_class (xine_t *xine, void *data) { plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ - { PLUGIN_DEMUX, 22, "mpeg-ts", XINE_VERSION_CODE, NULL, init_class }, + { PLUGIN_DEMUX, 23, "mpeg-ts", XINE_VERSION_CODE, NULL, init_class }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } }; |