diff --git a/src/osgPlugins/xine/ReaderWriterXine.cpp b/src/osgPlugins/xine/ReaderWriterXine.cpp index 083829994..1475d6668 100644 --- a/src/osgPlugins/xine/ReaderWriterXine.cpp +++ b/src/osgPlugins/xine/ReaderWriterXine.cpp @@ -79,8 +79,15 @@ class XineImageStream : public osg::ImageStream close(); return false; } - + + _ready = false; + + int width = xine_get_stream_info(_stream,XINE_STREAM_INFO_VIDEO_WIDTH); + int height = xine_get_stream_info(_stream,XINE_STREAM_INFO_VIDEO_HEIGHT); + allocateImage(width,height,1,GL_RGB,GL_UNSIGNED_BYTE,1); + + osg::notify(osg::INFO)<<"XineImageStream::open() size "<data(),data,imageStream->getTotalSizeInBytes()); - osg::notify(osg::NOTICE)<<"image memcpy size="<getTotalSizeInBytes()<<" time="<delta_m(start_tick,osg::Timer::instance()->tick())<<"ms"<dirty();