lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MPlayer-dev-eng] [PATCH] fix segfault when pressing Q without teletext
- Date: Tue, 14 Oct 2008 22:42:25 +0200
- From: Sascha Sommer <saschasommer@xxxxxxxxxx>
- Subject: [MPlayer-dev-eng] [PATCH] fix segfault when pressing Q without teletext
Hi,
currently MPlayer crashes when one presses the Q key during mp3 playback.
The reason is that Q tries to change some teletext property even if the TV
demuxer is not active.
Attached patch fixes the crash.
Ok to apply?
Regards
Sascha
Index: command.c
===================================================================
--- command.c (revision 27769)
+++ command.c (working copy)
@@ -1949,6 +1949,8 @@
tvi_handle_t *tvh = mpctx->demuxer->priv;
int result;
int val;
+ if (mpctx->demuxer->type != DEMUXER_TYPE_TV || !tvh)
+ return M_PROPERTY_UNAVAILABLE;
switch(action){
case M_PROPERTY_STEP_UP:
case M_PROPERTY_STEP_DOWN:
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng