Changeset bbc37b53fbf6ad9210de17a8166aa245bbbbef69
- Timestamp:
- 06/16/08 11:47:09
(2 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213609629 +0200
- git-parent:
[af28383a4e362803402e2d3f367e8c8f1a5bce10]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1213609505 +0200
- Message:
input: Make sure we send input state changes events. (Should fix the non sending of a play event reported by Rov Juvano).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1a7f1a4 |
rbbc37b5 |
|
| 1551 | 1551 | |
|---|
| 1552 | 1552 | /* Switch to play */ |
|---|
| 1553 | | p_input->i_state = PLAYING_S; |
|---|
| 1554 | | val.i_int = PLAYING_S; |
|---|
| 1555 | | var_Change( p_input, "state", VLC_VAR_SETVALUE, &val, NULL ); |
|---|
| | 1553 | input_ChangeState( p_input, PLAYING_S); |
|---|
| 1556 | 1554 | |
|---|
| 1557 | 1555 | /* */ |
|---|
| … | … | |
| 1562 | 1560 | p_input->p->b_can_pause ) |
|---|
| 1563 | 1561 | { |
|---|
| 1564 | | int i_ret; |
|---|
| | 1562 | int i_ret, state; |
|---|
| 1565 | 1563 | if( p_input->p->input.p_access ) |
|---|
| 1566 | 1564 | i_ret = access_Control( p_input->p->input.p_access, |
|---|
| … | … | |
| 1575 | 1573 | { |
|---|
| 1576 | 1574 | msg_Warn( p_input, "cannot set pause state" ); |
|---|
| 1577 | | val.i_int = p_input->i_state; |
|---|
| | 1575 | state = p_input->i_state; |
|---|
| 1578 | 1576 | } |
|---|
| 1579 | 1577 | else |
|---|
| 1580 | 1578 | { |
|---|
| 1581 | | val.i_int = PAUSE_S; |
|---|
| | 1579 | state = PAUSE_S; |
|---|
| 1582 | 1580 | } |
|---|
| 1583 | 1581 | |
|---|
| 1584 | 1582 | /* Switch to new state */ |
|---|
| 1585 | | p_input->i_state = val.i_int; |
|---|
| 1586 | | var_Change( p_input, "state", VLC_VAR_SETVALUE, &val, NULL ); |
|---|
| | 1583 | input_ChangeState( p_input, state); |
|---|
| 1587 | 1584 | |
|---|
| 1588 | 1585 | /* */ |
|---|
| … | … | |
| 1595 | 1592 | |
|---|
| 1596 | 1593 | /* Correct "state" value */ |
|---|
| 1597 | | val.i_int = p_input->i_state; |
|---|
| 1598 | | var_Change( p_input, "state", VLC_VAR_SETVALUE, &val, NULL ); |
|---|
| | 1594 | input_ChangeState( p_input, p_input->i_state ); |
|---|
| 1599 | 1595 | } |
|---|
| 1600 | 1596 | else if( val.i_int != PLAYING_S && val.i_int != PAUSE_S ) |
|---|