|
1 | | -diff --git a/priv_aamp.cpp b/priv_aamp.cpp |
2 | | -index aa589a87..c987d45a 100644 |
3 | | ---- a/priv_aamp.cpp |
4 | | -+++ b/priv_aamp.cpp |
5 | | -@@ -7053,10 +7053,10 @@ void PrivateInstanceAAMP::SetState(PrivAAMPState state) |
6 | | - return; |
7 | | - } |
| 1 | +diff --git a/AampEventManager.cpp b/AampEventManager.cpp |
| 2 | +index fea9673a..2ec52bb7 100644 |
| 3 | +--- a/AampEventManager.cpp |
| 4 | ++++ b/AampEventManager.cpp |
| 5 | +@@ -296,9 +296,8 @@ void AampEventManager::SendEvent(const AAMPEventPtr &eventData, AAMPEventMode ev |
8 | 6 |
|
9 | | -- if (0 == aamp_GetSourceID()) |
10 | | -+/* if (0 == aamp_GetSourceID()) |
| 7 | + if((mPlayerState != eSTATE_RELEASED) && (mEventListeners[AAMP_EVENT_ALL_EVENTS] || mEventListeners[eventType])) |
11 | 8 | { |
12 | | - sentSync = false; |
13 | | -- } |
14 | | -+ }*/ |
15 | | - |
16 | | - if ( (state == eSTATE_PLAYING || state == eSTATE_BUFFERING || state == eSTATE_PAUSED) |
17 | | - && mState == eSTATE_SEEKING && (mEventListener || mEventListeners[0] || mEventListeners[AAMP_EVENT_SEEKED])) |
| 9 | +- guint sId = GetSourceID(); |
| 10 | + // if caller is asking for Sync Event , ensure it has proper source Id, else it has to go async event |
| 11 | +- if(eventMode==AAMP_EVENT_SYNC_MODE && sId != 0) |
| 12 | ++ if(eventMode==AAMP_EVENT_SYNC_MODE) |
| 13 | + { |
| 14 | + SendEventSync(eventData); |
| 15 | + } |
| 16 | +@@ -309,7 +308,7 @@ void AampEventManager::SendEvent(const AAMPEventPtr &eventData, AAMPEventMode ev |
| 17 | + else |
| 18 | + { |
| 19 | + //For other events if asyncTune eneabled or calle from non-UI thread , then send the event as Async |
| 20 | +- if (mAsyncTuneEnabled || sId == 0) |
| 21 | ++ if (mAsyncTuneEnabled) |
| 22 | + { |
| 23 | + SendEventAsync(eventData); |
| 24 | + } |
0 commit comments