added semaphore for tests from csrocha

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Added api Melted from csrocha

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Fixed init test

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Mosto status test

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Cleaning PLAY section

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Fix mosto.stop timer for tests

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Using functions for timer lock.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Avoid use of too many global vars for actual_status, now that we have a complete one.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Using timer lock functions in SYNC section.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Indent fix

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Cleaning and reordering code. Adding function isPlayingExpectedClip with conditionals.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Cleaning and reordering code. Adding function getExpectedClip(server_playing_list).

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Cleaning and reordering code. Adding ineedMoreClips( server_playing_list, min_queue_clips ).

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Using timer lock functions in SYNC section.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Cleaning and reordering. Using added functions in SYNC section.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Cleaning SYNC section.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Missing line in buildStatus, playlistId

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Using timer functions in LOGIC section.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Moving time window operations in function updateTimeWindow

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>
Cleaning and using added functions in FETCH sections > checkoutPlaylists.

Signed-off-by: fabriciocosta <fabricio.costa@moldeointeractive.com.ar>