Skip to content

Commit f61b6f1

Browse files
committed
1.7.0
1 parent f4c5a14 commit f61b6f1

File tree

8 files changed

+15
-16
lines changed

8 files changed

+15
-16
lines changed
Binary file not shown.

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.7.0
2+
- allow icy on every codec, just provide interval, let user config and requesting player decide
3+
- (airupnp) only re-acquire state on play action completion. This is not needed on stop/pause and will create issues like fake stops
4+
15
1.6.3
26
- (airupnp) on error, reset counter to 0 if player responds
37

aircast/src/aircast.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "raop_server.h"
1919
#include "cast_util.h"
2020

21-
#define VERSION "v1.6.3"" ("__DATE__" @ "__TIME__")"
21+
#define VERSION "v1.7.0"" ("__DATE__" @ "__TIME__")"
2222

2323
/*----------------------------------------------------------------------------*/
2424
/* typedefs */

airupnp/src/airupnp.c

+6-11
Original file line numberDiff line numberDiff line change
@@ -488,17 +488,12 @@ int ActionHandler(Upnp_EventType EventType, const void *Event, void *Cookie) {
488488
p->StartCookie = p->WaitCookie;
489489
_ProcessQueue(p);
490490

491-
/*
492-
when certain waited action has been completed, the state need
493-
to be re-acquired because a 'stop' state might be missed when
494-
(eg) repositionning where two consecutive status update will
495-
give 'playing', the 'stop' in the middle being unseen
496-
*/
497-
if (Resp && (!strcasecmp(Resp, "StopResponse") ||
498-
!strcasecmp(Resp, "PlayResponse") ||
499-
!strcasecmp(Resp, "PauseResponse"))) {
500-
p->State = UNKNOWN;
501-
}
491+
/* when play action has been completed, the state need to be re-acquired because we
492+
* might have missed a state in-between. For example, while seeking there is a very
493+
* stop/play so the STOPPED state will be missed and the PLAYING event will be as
494+
* well. This should not be done for stop/pause actions otherwise we might create a fake STOPPED event state and think
495+
* we stopped when in fact it's just the re-acquisition of current state */
496+
if (Resp && !strcasecmp(Resp, "PlayResponse") && p->State == PLAYING) p->State = UNKNOWN;
502497

503498
break;
504499
}

airupnp/src/airupnp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "cross_util.h"
2222
#include "metadata.h"
2323

24-
#define VERSION "v1.6.3"" ("__DATE__" @ "__TIME__")"
24+
#define VERSION "v1.7.0"" ("__DATE__" @ "__TIME__")"
2525

2626
/*----------------------------------------------------------------------------*/
2727
/* typedefs */

airupnp/src/avt_util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* UPnP control util
2+
* UPnP Control util
33
*
44
* (c) Philippe, [email protected]
55
*

0 commit comments

Comments
 (0)