rem: if (strstr (val->value_name, "AUDIO")) { if (!bvw->priv->media_has_audio) { bvw->priv->media_has_audio = TRUE; } } else if (strstr (val->value_name, "VIDEO")) {
add: if (!g_strcasecmp (val->value_nick, "audio")) { bvw->priv->media_has_audio = TRUE; } else if (!g_strcasecmp (val->value_nick, "video")) {
context: parse_stream_info (BaconVideoWidget *bvw){  GList *streaminfo = NULL;  GstPad *videopad = NULL;  g_object_get (bvw->priv->play, "stream-info", &streaminfo, NULL);  streaminfo = g_list_copy (streaminfo);  g_list_foreach (streaminfo, (GFunc) g_object_ref, NULL);  for ( ; streaminfo != NULL; streaminfo = streaminfo->next) {    GObject *info = streaminfo->data;    gint type;    GParamSpec *pspec;    GEnumValue *val;    if (!info)      continue;    g_object_get (info, "type", &type, NULL);    pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (info), "type");    val = g_enum_get_value (G_PARAM_SPEC_ENUM (pspec)->enum_class, type);    if (strstr (val->value_name, "AUDIO")) {      if (!bvw->priv->media_has_audio) {        bvw->priv->media_has_audio = TRUE;      }    } else if (strstr (val->value_name, "VIDEO")) {      bvw->priv->media_has_video = TRUE;      if (!videopad) {        g_object_get (info, "object", &videopad, NULL);      }    }  }  if (videopad) {    GstCaps *caps;    if ((caps = gst_pad_get_negotiated_caps (videopad))) {      caps_set (G_OBJECT (videopad), NULL, bvw);      gst_caps_unref (caps);    }    g_signal_connect (videopad, "notify::caps",        G_CALLBACK (caps_set), bvw);  } else if (bvw->priv->show_vfx && bvw->priv->vis_element) {    get_visualization_size (bvw, &bvw->priv->video_width,			    &bvw->priv->video_height, NULL, NULL);  }  g_list_foreach (streaminfo, (GFunc) g_object_unref, NULL);  g_list_free (streaminfo);}