dvbsrc: fix invalid dereference of delsys data
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Wed, 11 May 2016 22:26:24 +0000 (15:26 -0700)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Wed, 11 May 2016 23:10:16 +0000 (16:10 -0700)
Use GPOINTER_TO_INT to read GINT_TO_POINTER stored
data.

sys/dvb/gstdvbsrc.c

index eb99d32..ea2d46b 100644 (file)
@@ -2351,7 +2351,7 @@ gst_dvbsrc_guess_delsys (GstDvbSrc * object)
    * supported delivery system */
 go_with_default:
   delsys = g_list_last (object->supported_delsys);
-  object->delsys = *(guchar *) delsys->data;
+  object->delsys = GPOINTER_TO_INT (delsys->data);
 
 autoselection_done:
   GST_INFO_OBJECT (object, "Automatically selecting delivery system '%u'",