Commit 57b74dfc authored by md's avatar md

Fix endless looping with PowerCAM PRO due to protocol violation.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@104 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 2b364272
......@@ -1812,7 +1812,7 @@ static void MMIOpen( access_t *p_access, int i_session_id )
/*****************************************************************************
* InitSlot: Open the transport layer
*****************************************************************************/
#define MAX_TC_RETRIES 20
#define MAX_TC_RETRIES 5
static int InitSlot( access_t * p_access, int i_slot )
{
......@@ -1826,7 +1826,7 @@ static int InitSlot( access_t * p_access, int i_slot )
return -1;
}
/* This is out of the spec */
/* Wait for T_CTC_REPLY */
for ( i = 0; i < MAX_TC_RETRIES; i++ )
{
uint8_t i_tag;
......@@ -1836,15 +1836,6 @@ static int InitSlot( access_t * p_access, int i_slot )
pb_active_slot[i_slot] = true;
break;
}
if ( TPDUSend( p_access, i_slot, T_CREATE_TC, NULL, 0 )
!= 0 )
{
msg_Err( p_access,
"en50221_Init: couldn't send TPDU on slot %d",
i_slot );
continue;
}
}
if ( pb_active_slot[i_slot] )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment