summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_elem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_elem.c')
-rw-r--r--src/demuxers/demux_elem.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/demuxers/demux_elem.c b/src/demuxers/demux_elem.c
index 5075d5d09..8e51f4534 100644
--- a/src/demuxers/demux_elem.c
+++ b/src/demuxers/demux_elem.c
@@ -19,7 +19,7 @@
*/
/*
- * $Id: demux_elem.c,v 1.77 2003/11/11 18:44:51 f1rmb Exp $
+ * $Id: demux_elem.c,v 1.78 2003/11/15 14:00:43 miguelfreitas Exp $
*
* demultiplexer for elementary mpeg streams
*/
@@ -137,13 +137,13 @@ static void demux_mpeg_elem_send_headers (demux_plugin_t *this_gen) {
}
static int demux_mpeg_elem_seek (demux_plugin_t *this_gen,
- off_t start_pos, int start_time) {
+ off_t start_pos, int start_time, int playing) {
demux_mpeg_elem_t *this = (demux_mpeg_elem_t *) this_gen;
this->status = DEMUX_OK;
- if (this->stream->demux_thread_running)
+ if (playing)
_x_demux_flush_engine(this->stream);
if (INPUT_IS_SEEKABLE(this->input)) {
@@ -232,8 +232,6 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str
this->demux_plugin.dispose = demux_mpeg_elem_dispose;
this->demux_plugin.get_status = demux_mpeg_elem_get_status;
this->demux_plugin.get_stream_length = demux_mpeg_elem_get_stream_length;
- this->demux_plugin.get_video_frame = NULL;
- this->demux_plugin.got_video_frame_cb= NULL;
this->demux_plugin.get_capabilities = demux_mpeg_elem_get_capabilities;
this->demux_plugin.get_optional_data = demux_mpeg_elem_get_optional_data;
this->demux_plugin.demux_class = class_gen;
@@ -286,6 +284,6 @@ static void *init_plugin (xine_t *xine, void *data) {
plugin_info_t xine_plugin_info[] = {
/* type, API, "name", version, special_info, init_function */
- { PLUGIN_DEMUX, 22, "elem", XINE_VERSION_CODE, NULL, init_plugin },
+ { PLUGIN_DEMUX, 23, "elem", XINE_VERSION_CODE, NULL, init_plugin },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};