summaryrefslogtreecommitdiff
path: root/src/xine-engine/video_out.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-11-15 23:18:04 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-11-15 23:18:04 +0000
commit9635738cc349e37e76f23a4d99eda696197cb715 (patch)
treec77eaa18c0a85983252dd7f5ef5bbba04e18a015 /src/xine-engine/video_out.c
parent230d3c07ef6fca8fb08ae8f14235c56b535d7e64 (diff)
downloadxine-lib-9635738cc349e37e76f23a4d99eda696197cb715.tar.gz
xine-lib-9635738cc349e37e76f23a4d99eda696197cb715.tar.bz2
improved audio/spu channel selection, let the user take control over both if he/she wants to
CVS patchset: 1047 CVS date: 2001/11/15 23:18:04
Diffstat (limited to 'src/xine-engine/video_out.c')
-rw-r--r--src/xine-engine/video_out.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c
index c13b34583..63b2f4a91 100644
--- a/src/xine-engine/video_out.c
+++ b/src/xine-engine/video_out.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: video_out.c,v 1.53 2001/11/13 21:47:59 heikos Exp $
+ * $Id: video_out.c,v 1.54 2001/11/15 23:18:04 guenter Exp $
*
*/
@@ -304,7 +304,7 @@ static void *video_out_loop (void *this_gen) {
profiler_start_count (prof_spu_blend);
ovl = this->overlay_source->get_overlay (this->overlay_source, img->PTS);
- if (this->video_loop_running && ovl && this->driver->overlay_blend)
+ if (this->video_loop_running && ovl && this->driver->overlay_blend && this->overlay_enabled)
this->driver->overlay_blend (this->driver, img, ovl);
profiler_stop_count (prof_spu_blend);
@@ -578,6 +578,10 @@ static void vo_unregister_ovl_src (vo_instance_t *this, ovl_src_t *ovl_src)
this->overlay_source = NULL;
}
+static void vo_enable_overlay (vo_instance_t *this, int overlay_enabled) {
+ this->overlay_enabled = overlay_enabled;
+}
+
vo_instance_t *vo_new_instance (vo_driver_t *driver, metronom_t *metronom) {
vo_instance_t *this;
@@ -595,6 +599,7 @@ vo_instance_t *vo_new_instance (vo_driver_t *driver, metronom_t *metronom) {
this->get_capabilities = vo_get_capabilities;
this->register_ovl_src = vo_register_ovl_src;
this->unregister_ovl_src = vo_unregister_ovl_src;
+ this->enable_ovl = vo_enable_overlay;
this->num_frames_delivered = 0;
this->num_frames_skipped = 0;
@@ -604,6 +609,7 @@ vo_instance_t *vo_new_instance (vo_driver_t *driver, metronom_t *metronom) {
this->video_loop_running = 0;
this->pts_per_frame = 0;
this->pts_per_half_frame = 0;
+ this->overlay_enabled = 1;
for (i=0; i<NUM_FRAME_BUFFERS; i++) {
vo_frame_t *img;