@Override
public void onReceive(final Context context, Intent intent) {
Log.i(TAG, "Dealing with Flush request");
switch (intent.getIntExtra(C.MESSAGE_TYPE, -1)) {
case C.REQUEST_PUT_HEADER:
<BUG>buffer.putHeader(0, 0, 0);
break;</BUG>
case C.REQUEST_FLUSH_HEADER:
<BUG>buffer.flushHeader();
break;</BUG>
case C.REQUEST_FLUSH_SAMPLES:

@Override
public void onReceive(final Context context, Intent intent) {
Log.i(TAG, "Dealing with Flush request");
switch (intent.getIntExtra(C.MESSAGE_TYPE, -1)) {
case C.REQUEST_PUT_HEADER:
if ( buffer!= null ) buffer.putHeader(0, 0, 0);
break;
case C.REQUEST_FLUSH_HEADER:
if ( buffer!= null ) buffer.flushHeader();
break;
