void graph::youtubeops::do_configure_comp (const int comp_id) { if (last_op_succeeded ()) { if (comp_id == 0) { tizyoutubeconfig_ptr_t youtube_config = boost::dynamic_pointer_cast< youtubeconfig > (config_); assert (youtube_config); G_OPS_BAIL_IF_ERROR ( tiz::graph::util::set_youtube_playlist ( handles_[0], playlist_->get_current_uri (), youtube_config->get_playlist_type (), playlist_->shuffle ()), "Unable to set OMX_TizoniaIndexParamAudioYoutubePlaylist"); } else if (comp_id == 2) { G_OPS_BAIL_IF_ERROR ( apply_default_config_on_decoder (), "Unable to apply the decoder's initial configuration"); } else if (comp_id == 3) { G_OPS_BAIL_IF_ERROR (apply_pcm_codec_info_from_decoder (), "Unable to set OMX_IndexParamAudioPcm"); } } }
void graph::gmusicops::do_configure () { if (last_op_succeeded ()) { G_OPS_BAIL_IF_ERROR (apply_pcm_codec_info_from_decoder (), "Unable to set OMX_IndexParamAudioPcm"); } }
void graph::gmusicops::do_configure () { if (last_op_succeeded ()) { G_OPS_BAIL_IF_ERROR (override_decoder_and_renderer_sampling_rates (), "Unable to override decoder/renderer sampling rates"); G_OPS_BAIL_IF_ERROR (apply_pcm_codec_info_from_decoder (), "Unable to set OMX_IndexParamAudioPcm"); } }