summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapidecoder_unit.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-02-03 11:50:13 +0100
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-02-03 20:03:47 +0100
commitac730d0a62a39e4379d218c7ae13c65323bf49f4 (patch)
tree113bca61b80ed40810154b20ab74c8525f192014 /gst-libs/gst/vaapi/gstvaapidecoder_unit.c
parent4b5be5973ed7784a5099463de976e1fd118d6f57 (diff)
downloadgst-vaapi-ac730d0a62a39e4379d218c7ae13c65323bf49f4.tar.gz
libs: humongous code style fix
As part of the upstreaming process of gstreamer-vaapi into the GStreamer umbrella, we need to comply with the project's code style. This meant to change a lot of code. It was decided to use a single massive patch to update the code style. I would like to apologize with the original developers of this code because of the history breakage. Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_unit.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_unit.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_unit.c b/gst-libs/gst/vaapi/gstvaapidecoder_unit.c
index 8ffbf076..fd08a83e 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_unit.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_unit.c
@@ -38,14 +38,14 @@
* sub-classes.
*/
void
-gst_vaapi_decoder_unit_init(GstVaapiDecoderUnit *unit)
+gst_vaapi_decoder_unit_init (GstVaapiDecoderUnit * unit)
{
- unit->flags = 0;
- unit->size = 0;
- unit->offset = 0;
+ unit->flags = 0;
+ unit->size = 0;
+ unit->offset = 0;
- unit->parsed_info = NULL;
- unit->parsed_info_destroy_notify = NULL;
+ unit->parsed_info = NULL;
+ unit->parsed_info_destroy_notify = NULL;
}
/**
@@ -59,9 +59,9 @@ gst_vaapi_decoder_unit_init(GstVaapiDecoderUnit *unit)
* sub-classes.
*/
void
-gst_vaapi_decoder_unit_clear(GstVaapiDecoderUnit *unit)
+gst_vaapi_decoder_unit_clear (GstVaapiDecoderUnit * unit)
{
- gst_vaapi_decoder_unit_set_parsed_info(unit, NULL, NULL);
+ gst_vaapi_decoder_unit_set_parsed_info (unit, NULL, NULL);
}
/**
@@ -77,13 +77,13 @@ gst_vaapi_decoder_unit_clear(GstVaapiDecoderUnit *unit)
* function will be called before the @parsed_info is replaced.
*/
void
-gst_vaapi_decoder_unit_set_parsed_info(GstVaapiDecoderUnit *unit,
+gst_vaapi_decoder_unit_set_parsed_info (GstVaapiDecoderUnit * unit,
gpointer parsed_info, GDestroyNotify destroy_notify)
{
- g_return_if_fail(GST_VAAPI_IS_DECODER_UNIT(unit));
+ g_return_if_fail (GST_VAAPI_IS_DECODER_UNIT (unit));
- if (unit->parsed_info && unit->parsed_info_destroy_notify)
- unit->parsed_info_destroy_notify(unit->parsed_info);
- unit->parsed_info = parsed_info;
- unit->parsed_info_destroy_notify = destroy_notify;
+ if (unit->parsed_info && unit->parsed_info_destroy_notify)
+ unit->parsed_info_destroy_notify (unit->parsed_info);
+ unit->parsed_info = parsed_info;
+ unit->parsed_info_destroy_notify = destroy_notify;
}