001/*******************************************************************************
002 * Copyright (c) 2024, 2026, Olivier Ayache.  All rights reserved.
003 *
004 * This file is part of AVPKit.
005 *
006 * AVPKit is free software: you can redistribute it and/or modify
007 * it under the terms of the GNU Lesser General Public License as published by
008 * the Free Software Foundation, either version 3 of the License, or
009 * (at your option) any later version.
010 *
011 * AVPKit is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014 * GNU Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public License
017 * along with AVPKit.  If not, see <http://www.gnu.org/licenses/>.
018 *******************************************************************************/
019
020package com.avpkit.mediatool.event;
021
022import com.avpkit.mediatool.IMediaCoder;
023
024/**
025 * An abstract implementation of {@link ICoderEvent}, but
026 * does not declare {@link ICoderEvent}.
027 * 
028 * @author aclarke
029 *
030 */
031public abstract class ACoderMixin extends AEventMixin {
032  /**
033   * Create an {@link ACoderMixin}.
034   * @param source
035   */
036  public ACoderMixin(IMediaCoder source)
037  {
038    super(source);
039  }
040  
041  /**
042   * Implementation of {@link ICoderEvent#getSource()}.
043   */
044
045  @Override
046  public IMediaCoder getSource()
047  {
048    return (IMediaCoder) super.getSource();
049  }
050}