comparison stream/tvi_dshow.c @ 25019:b64074f0f124

Not all cards supports changing country code. This patch makes failed call to put_CountryCode non-fatal.
author voroshil
date Wed, 14 Nov 2007 12:57:17 +0000
parents d81eef9beb1b
children 2cae9470f53b
comparison
equal deleted inserted replaced
25018:be9cd6001a7d 25019:b64074f0f124
2665 if (priv->pTVTuner) { 2665 if (priv->pTVTuner) {
2666 hr = OLE_CALL_ARGS(priv->pTVTuner, put_CountryCode, 2666 hr = OLE_CALL_ARGS(priv->pTVTuner, put_CountryCode,
2667 chanlist2country(priv->tv_param->chanlist)); 2667 chanlist2country(priv->tv_param->chanlist));
2668 if(FAILED(hr)){ 2668 if(FAILED(hr)){
2669 mp_msg(MSGT_TV,MSGL_DBG2, "tvi_dshow: Call to put_CountryCode failed. Error:0x%x\n",(unsigned int)hr); 2669 mp_msg(MSGT_TV,MSGL_DBG2, "tvi_dshow: Call to put_CountryCode failed. Error:0x%x\n",(unsigned int)hr);
2670 break;
2671 } 2670 }
2672 2671
2673 hr = OLE_CALL_ARGS(priv->pTVTuner, put_Mode, AMTUNER_MODE_TV); 2672 hr = OLE_CALL_ARGS(priv->pTVTuner, put_Mode, AMTUNER_MODE_TV);
2674 if(FAILED(hr)){ 2673 if(FAILED(hr)){
2675 mp_msg(MSGT_TV,MSGL_DBG2, "tvi_dshow: Call to put_Mode failed. Error:0x%x\n",(unsigned int)hr); 2674 mp_msg(MSGT_TV,MSGL_DBG2, "tvi_dshow: Call to put_Mode failed. Error:0x%x\n",(unsigned int)hr);