summaryrefslogtreecommitdiff
path: root/src/input/net_buf_ctrl.c
diff options
context:
space:
mode:
authoruid86226 <none@none>2004-02-16 20:19:09 +0000
committeruid86226 <none@none>2004-02-16 20:19:09 +0000
commit5807b51c46b31abe0fecedb8f1a783f2bd74a18d (patch)
treedb5924af7c3bf12972a2e99854a76b8914d1fb99 /src/input/net_buf_ctrl.c
parent76b4bde43bb287a9b4cbfe92b4af5e1dd40ee311 (diff)
downloadxine-lib-5807b51c46b31abe0fecedb8f1a783f2bd74a18d.tar.gz
xine-lib-5807b51c46b31abe0fecedb8f1a783f2bd74a18d.tar.bz2
fix freezes with input plugins that play with the speed:
* use _x_set_speed() for speed manipulations, since it is ticket-safe * _x_set_speed() is an internal helper function now, move frontend locking outside of it * restrict access to metronom clock internal stuff CVS patchset: 6165 CVS date: 2004/02/16 20:19:09
Diffstat (limited to 'src/input/net_buf_ctrl.c')
-rw-r--r--src/input/net_buf_ctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c
index e5b720a55..b8d44a3b3 100644
--- a/src/input/net_buf_ctrl.c
+++ b/src/input/net_buf_ctrl.c
@@ -99,13 +99,13 @@ static void report_progress (xine_stream_t *stream, int p) {
static void nbc_set_speed_pause (xine_stream_t *stream) {
xprintf(stream->xine, XINE_VERBOSITY_DEBUG, "\nnet_buf_ctrl: nbc_put_cb: set_speed_pause\n");
- stream->xine->clock->set_speed (stream->xine->clock, XINE_SPEED_PAUSE);
+ _x_set_speed(stream, XINE_SPEED_PAUSE);
stream->xine->clock->set_option (stream->xine->clock, CLOCK_SCR_ADJUSTABLE, 0);
}
static void nbc_set_speed_normal (xine_stream_t *stream) {
xprintf(stream->xine, XINE_VERBOSITY_DEBUG, "\nnet_buf_ctrl: nbc_put_cb: set_speed_normal\n");
- stream->xine->clock->set_speed (stream->xine->clock, XINE_SPEED_NORMAL);
+ _x_set_speed(stream, XINE_SPEED_NORMAL);
stream->xine->clock->set_option (stream->xine->clock, CLOCK_SCR_ADJUSTABLE, 1);
}