Skip to content

Commit

Permalink
adding renderer to mediaplayer class
Browse files Browse the repository at this point in the history
  • Loading branch information
havlenapetr committed Aug 4, 2010
1 parent 132ba26 commit a89be17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions jni/libmediaplayer/mediaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ MediaPlayer::MediaPlayer()
pthread_mutex_init(&mLock, NULL);
mLeftVolume = mRightVolume = 1.0;
mVideoWidth = mVideoHeight = 0;
mVideoQueue = new PacketQueue();
sPlayer = this;
}

MediaPlayer::~MediaPlayer()
{
free(mVideoQueue);
if(mListener != NULL) {
free(mListener);
}
Expand Down
4 changes: 2 additions & 2 deletions jni/libmediaplayer/mediaplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <jni.h>
#include <android/Errors.h>

#include "packetqueue.h"
#include "renderer.h"
#include "decoder_audio.h"
#include "decoder_video.h"

Expand Down Expand Up @@ -152,7 +152,6 @@ class MediaPlayer

double mTime;
pthread_mutex_t mLock;
pthread_t mVideoThread;
pthread_t mPlayerThread;
PacketQueue* mVideoQueue;
//Mutex mNotifyLock;
Expand All @@ -163,6 +162,7 @@ class MediaPlayer
int mVideoStreamIndex;
DecoderAudio* mDecoderAudio;
DecoderVideo* mDecoderVideo;
Renderer* mRenderer;
void* mCookie;
media_player_states mCurrentState;
int mDuration;
Expand Down

0 comments on commit a89be17

Please sign in to comment.