mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
dvbbasebin: fix criticals when trying to cast a GstPad to a GstElement
message->src might be a GstPad. Observed during gst-inspect-1.0 -a
This commit is contained in:
parent
8b24d5829b
commit
9d92aaabe7
1 changed files with 2 additions and 1 deletions
|
@ -779,7 +779,8 @@ dvb_base_bin_handle_message (GstBin * bin, GstMessage * message)
|
|||
|
||||
dvbbasebin = GST_DVB_BASE_BIN (bin);
|
||||
|
||||
if (GST_ELEMENT (message->src) == GST_ELEMENT (dvbbasebin->tsparse)) {
|
||||
/* note: message->src might be a GstPad, so use element cast w/o typecheck */
|
||||
if (GST_ELEMENT_CAST (message->src) == GST_ELEMENT (dvbbasebin->tsparse)) {
|
||||
GstMpegTsSection *section = gst_message_parse_mpegts_section (message);
|
||||
|
||||
if (section) {
|
||||
|
|
Loading…
Reference in a new issue