summaryrefslogtreecommitdiff
path: root/src/xine-engine/video_out.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-08-14 11:57:40 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-08-14 11:57:40 +0000
commitdc1ae5d9a88fdf89ab3de73380fefb0e70316305 (patch)
treea823d32a10c85e57fec38ca6ae33231169c4d7a8 /src/xine-engine/video_out.c
parent79afb1ee5937876ef0c6b27c2e33370890003a36 (diff)
downloadxine-lib-dc1ae5d9a88fdf89ab3de73380fefb0e70316305.tar.gz
xine-lib-dc1ae5d9a88fdf89ab3de73380fefb0e70316305.tar.bz2
return of the profiler
CVS patchset: 428 CVS date: 2001/08/14 11:57:40
Diffstat (limited to 'src/xine-engine/video_out.c')
-rw-r--r--src/xine-engine/video_out.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c
index 93f6766de..31b96ed8f 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.39 2001/08/13 12:52:33 ehasenle Exp $
+ * $Id: video_out.c,v 1.40 2001/08/14 11:57:40 guenter Exp $
*
*/
@@ -180,6 +180,8 @@ static void *video_out_loop (void *this_gen) {
/* sigwait(&vo_mask, &dummysignum); */ /* wait for next timer tick */
pause ();
+ profiler_start_count (2);
+
video_step_new = this->metronom->get_video_rate (this->metronom);
if (video_step_new != video_step) {
video_step = video_step_new;
@@ -196,6 +198,7 @@ static void *video_out_loop (void *this_gen) {
img = this->display_img_buf_queue->first;
if (!img) {
+ profiler_stop_count (2);
continue;
}
@@ -250,6 +253,7 @@ static void *video_out_loop (void *this_gen) {
*/
if (diff<0) {
+ profiler_stop_count (2);
continue;
}
@@ -262,8 +266,10 @@ static void *video_out_loop (void *this_gen) {
img = vo_remove_from_img_buf_queue (this->display_img_buf_queue);
- if (!img)
+ if (!img) {
+ profiler_stop_count (2);
continue;
+ }
pthread_mutex_lock (&img->mutex);
img->bDriverLock = 1;
@@ -285,6 +291,7 @@ static void *video_out_loop (void *this_gen) {
this->driver->display_frame (this->driver, img);
+ profiler_stop_count (2);
}
/*