comparison command.c @ 29820:b33846197f5c

Make sure the teletext property stuff does not crash if no demuxer is available.
author reimar
date Mon, 09 Nov 2009 15:04:57 +0000
parents e255f9571156
children 415169f556ed
comparison
equal deleted inserted replaced
29819:2c2733d12823 29820:b33846197f5c
1886 /* 1886 /*
1887 for teletext's GET,SET,STEP ioctls this is not 0 1887 for teletext's GET,SET,STEP ioctls this is not 0
1888 SET is GET+1 1888 SET is GET+1
1889 STEP is GET+2 1889 STEP is GET+2
1890 */ 1890 */
1891 if (!mpctx->demuxer->teletext) 1891 if (!mpctx->demuxer || !mpctx->demuxer->teletext)
1892 return M_PROPERTY_UNAVAILABLE; 1892 return M_PROPERTY_UNAVAILABLE;
1893 if(!base_ioctl) 1893 if(!base_ioctl)
1894 return M_PROPERTY_ERROR; 1894 return M_PROPERTY_ERROR;
1895 1895
1896 switch (action) { 1896 switch (action) {