Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Aug 13, 2023
1 parent 7bafe18 commit b2787f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/framework/mlt_consumer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,10 @@ static void mlt_thread_create(mlt_consumer self, mlt_thread_function_t function)
pthread_attr_init(&thread_attributes);
pthread_attr_setschedpolicy(&thread_attributes, SCHED_OTHER);
pthread_attr_setschedparam(&thread_attributes, &priority);
#if !defined(__ANDROID__) || (defined(__ANDROID__) && __ANDROID_API__ >= 28) // pthread_attr_setinheritsched is not available until API level 28
#if !defined(__ANDROID__) \
|| (defined(__ANDROID__) \
&& __ANDROID_API__ \
>= 28) // pthread_attr_setinheritsched is not available until API level 28
pthread_attr_setinheritsched(&thread_attributes, PTHREAD_EXPLICIT_SCHED);
#endif
pthread_attr_setscope(&thread_attributes, PTHREAD_SCOPE_SYSTEM);
Expand Down
4 changes: 2 additions & 2 deletions src/modules/qt/gps_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ void process_gps_smoothing(gps_private_data gdata, char do_processing)
gp_p[i].atemp = gp_r[i].atemp;

//heart rate
if (gp_r[i].hr != GPS_UNINIT) { //found valid hr
if (gp_r[i].hr != GPS_UNINIT) { //found valid hr
if (hr != GPS_UNINIT && nr_hr > 0
&& nr_hr <= nr_one_minute) { //there were missing values and had a hr before
nr_hr++;
Expand Down Expand Up @@ -958,7 +958,7 @@ void process_gps_smoothing(gps_private_data gdata, char do_processing)
if (i - 1 >= 0 && i + 1 < gps_points_size //if we're not at start/end
&& !has_valid_location(gps_points_r[i]) && has_valid_location(gps_points_r[i - 1])
&& has_valid_location(
gps_points_r[i + 1]) //if current point has no lat/lon but nearby ones do
gps_points_r[i + 1]) //if current point has no lat/lon but nearby ones do
&& llabs(gps_points_r[i + 1].time - gps_points_r[i - 1].time)
< max_gps_diff_ms) //if time difference is lower than max_gps_diff_ms
{
Expand Down
2 changes: 1 addition & 1 deletion src/modules/qt/gps_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ typedef struct
//read only:
int64_t gps_proc_start_t; //process only points after this time (epoch miliseconds)
int last_smooth_lvl;
char *last_filename; //gps file fullpath
char *last_filename; //gps file fullpath
mlt_filter filter;
} gps_private_data;

Expand Down

0 comments on commit b2787f9

Please sign in to comment.