Commit 9da92fa4 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dr_a1.*: apply coding style fixes

Fix weird indentation introduced by commit: 9afd8b97103181a8d68699d368cac9ad27ad6c5c

The preferred coding style is:
- 4 spaces indentation (no tabs)
- indent '{' and '}' on the same column as the 'if', eg:
  if (...)
  {
  }
- function declarations always start in the first column
parent 70b55cdd
......@@ -63,8 +63,7 @@ dvbpsi_DecodeServiceLocationDr (dvbpsi_descriptor_t * p_descriptor)
return NULL;
/* Allocate memory */
p_decoded =
(dvbpsi_service_location_dr_t *)
p_decoded = (dvbpsi_service_location_dr_t *)
malloc (sizeof (dvbpsi_service_location_dr_t));
if (!p_decoded)
return NULL;
......@@ -89,7 +88,6 @@ dvbpsi_DecodeServiceLocationDr (dvbpsi_descriptor_t * p_descriptor)
buf += 6;
}
return p_decoded;
}
......
......@@ -36,12 +36,12 @@ extern "C"
#endif
typedef struct dvbpsi_service_location_element_s
{
typedef struct dvbpsi_service_location_element_s
{
uint8_t i_stream_type;
uint16_t i_elementary_pid;
char i_iso_639_code[3];
} dvbpsi_service_location_element_t;
} dvbpsi_service_location_element_t;
/*****************************************************************************
* dvbpsi_service_location_dr_s
......@@ -57,14 +57,14 @@ extern "C"
* \typedef struct dvbpsi_service_location_dr_s dvbpsi_service_location_dr_t
* \brief dvbpsi_service_dr_t type definition.
*/
typedef struct dvbpsi_service_location_dr_s
{
typedef struct dvbpsi_service_location_dr_s
{
uint16_t i_pcr_pid; /*!< PCR_PID */
uint8_t i_number_elements; /*!< number of elements used for this service */
dvbpsi_service_location_element_t elements[0xff];
} dvbpsi_service_location_dr_t;
} dvbpsi_service_location_dr_t;
/*****************************************************************************
......@@ -78,7 +78,7 @@ extern "C"
* \return a pointer to a new "service" descriptor structure
* which contains the decoded data.
*/
dvbpsi_service_location_dr_t
dvbpsi_service_location_dr_t
*dvbpsi_DecodeServiceLocationDr (dvbpsi_descriptor_t * p_descriptor);
#if 0
......@@ -95,7 +95,7 @@ extern "C"
* the descriptor
* \return a pointer to a new descriptor structure which contains encoded data.
*/
dvbpsi_descriptor_t *dvbpsi_GenServiceLocationDr (dvbpsi_service_dr_t *
dvbpsi_descriptor_t *dvbpsi_GenServiceLocationDr (dvbpsi_service_dr_t *
p_decoded,
bool b_duplicate);
#endif
......
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