summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-06-04 14:37:33 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-06-04 14:37:33 +0000
commit5c5e1a0cf7d4b89b15f2465004748b277ae251bb (patch)
tree353331ec9185ee77e79c025ba8f8111354c01138
parentaf1905883bdd0b144b13ec1d34e72232c29a9f5a (diff)
downloadxine-lib-5c5e1a0cf7d4b89b15f2465004748b277ae251bb.tar.gz
xine-lib-5c5e1a0cf7d4b89b15f2465004748b277ae251bb.tar.bz2
sputext decoder relied on status() with stream==NULL, which is wrong now
CVS patchset: 6638 CVS date: 2004/06/04 14:37:33
-rw-r--r--src/libsputext/xine_decoder.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/libsputext/xine_decoder.c b/src/libsputext/xine_decoder.c
index 18c13512a..6e351651e 100644
--- a/src/libsputext/xine_decoder.c
+++ b/src/libsputext/xine_decoder.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: xine_decoder.c,v 1.80 2004/04/26 17:50:08 mroi Exp $
+ * $Id: xine_decoder.c,v 1.81 2004/06/04 14:37:33 mroi Exp $
*
*/
@@ -162,10 +162,11 @@ static void update_output_size (sputext_decoder_t *this) {
VO_PROP_WINDOW_HEIGHT) ||
!this->img_duration || !this->osd ) {
- int width, height; /* dummy */
+ int width = 0, height = 0; /* dummy */
- if( this->stream->video_out->status(this->stream->video_out, NULL,
- &width, &height, &this->img_duration )) {
+ this->stream->video_out->status(this->stream->video_out, NULL,
+ &width, &height, &this->img_duration );
+ if( width && height ) {
this->width = this->stream->video_out->get_property(this->stream->video_out,
VO_PROP_WINDOW_WIDTH);
@@ -182,14 +183,16 @@ static void update_output_size (sputext_decoder_t *this) {
} else {
if( !this->width || !this->height || !this->img_duration || !this->osd ) {
- if( this->stream->video_out->status(this->stream->video_out, NULL,
- &this->width, &this->height, &this->img_duration )) {
-
- if( this->width && this->height && this->img_duration ) {
- this->renderer = this->stream->osd_renderer;
-
- update_font_size (this, 1);
- }
+ this->width = 0;
+ this->height = 0;
+
+ this->stream->video_out->status(this->stream->video_out, NULL,
+ &this->width, &this->height, &this->img_duration );
+
+ if( this->width && this->height && this->img_duration ) {
+ this->renderer = this->stream->osd_renderer;
+
+ update_font_size (this, 1);
}
}
}