Skip to content

Commit

Permalink
chromecast_renderer: couple of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrubio committed Nov 10, 2017
1 parent a71de7f commit 8f77565
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions plugins/chromecast_renderer/src/cc_gmusiccfgport.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ cc_gmusic_cfgport_SetParameter (const void * ap_obj, OMX_HANDLETYPE ap_hdl,
}
else if (OMX_TizoniaIndexParamChromecastSession == a_index)
{
memcpy (&(p_obj->gm_session_), ap_struct,
sizeof (OMX_TIZONIA_AUDIO_PARAM_GMUSICSESSIONTYPE));
memcpy (&(p_obj->cc_session_), ap_struct,
sizeof (OMX_TIZONIA_PARAM_CHROMECASTSESSIONTYPE));
p_obj->cc_session_.cNameOrIpAddr[OMX_MAX_STRINGNAME_SIZE - 1] = '\000';
TIZ_TRACE (ap_hdl, "Chromecast name of ip [%s]...",
p_obj->cc_session_.cNameOrIpAddr);
Expand Down
9 changes: 4 additions & 5 deletions plugins/chromecast_renderer/src/cc_gmusicprc.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ obtain_next_url (cc_gmusic_prc_t * ap_prc, int a_skip_value)
const OMX_U32 url_len = strnlen (p_next_url, pathname_max);
TIZ_TRACE (handleOf (ap_prc), "URL [%s]", p_next_url);

/* Verify we are getting an chromecast scheme */
/* Verify we are getting an http scheme */
if (!p_next_url || !url_len
|| (memcmp (p_next_url, "chromecast://", 7) != 0
&& memcmp (p_next_url, "chromecasts://", 8) != 0))
|| (memcmp (p_next_url, "http://", 7) != 0
&& memcmp (p_next_url, "https://", 8) != 0))
{
rc = OMX_ErrorContentURIError;
}
Expand Down Expand Up @@ -441,7 +441,6 @@ static OMX_ERRORTYPE
cc_gmusic_prc_allocate_resources (void * ap_obj, OMX_U32 a_pid)
{
cc_gmusic_prc_t * p_prc = ap_obj;
OMX_ERRORTYPE rc = OMX_ErrorInsufficientResources;
assert (p_prc);
tiz_check_omx (retrieve_gm_session_configuration (p_prc));
tiz_check_omx (retrieve_playlist (p_prc));
Expand All @@ -468,7 +467,7 @@ cc_gmusic_prc_allocate_resources (void * ap_obj, OMX_U32 a_pid)
tiz_check_omx (enqueue_playlist_items (p_prc));
tiz_check_omx (obtain_next_url (p_prc, 1));

return rc;
return OMX_ErrorNone;
}

static OMX_ERRORTYPE
Expand Down

0 comments on commit 8f77565

Please sign in to comment.