Fixed segtotal value being always 2 due to an unused variable

The 'MAX' expression used to set segtotal always returned 2 because the unused and unitialized variable buffer_frame_count was always 0
12 jobs for master in 103 minutes and 31 seconds (queued for 1 second)
Status Job ID Name Coverage
  Preparation
passed #274876
gst indent

00:00:27

passed #274875
manifest

00:00:18

 
  Build
passed #274877
build fedora x86_64

00:04:33

passed #274878
build nodebug fedora x86_64

00:04:21

 
  Test
passed #274879
check fedora

00:02:55

passed #274880
integration testsuites fedora

00:07:46

 
  Full Builds
passed #274882
build cerbero android universal

01:18:47

passed #274883
build cerbero cross win32

00:40:31

passed #274884
build cerbero cross win64

00:36:53

passed #274881
build cerbero fedora x86_64

00:37:02

 
  Full Tests
passed #274885
valgrind bad

00:04:43

 
  Apps
passed #274886
android universal examples

00:07:12