Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb76ff27 authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Report an error instead of waiting for EOS indefinitely in sf2."

parents a673ba75 f5e376fb
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -14,6 +14,10 @@
 * limitations under the License.
 */

//#define LOG_NDEBUG 0
#define LOG_TAG "sf2"
#include <utils/Log.h>

#include <binder/ProcessState.h>

#include <media/stagefright/foundation/hexdump.h>
@@ -205,6 +209,12 @@ protected:
                    }

                    looper()->stop();
                } else if (what == ACodec::kWhatError) {
                    ALOGE("something went wrong, codec reported an error.");

                    printf("E\n");

                    (new AMessage(kWhatStop, id()))->post();
                }
                break;
            }